/[xmltv_parser]/trunk/libxmltv/Core/XMLTVSource.cs
ViewVC logotype

Diff of /trunk/libxmltv/Core/XMLTVSource.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 49 by william, Fri Mar 8 05:20:12 2013 UTC revision 55 by william, Fri Mar 8 10:19:32 2013 UTC
# Line 23  namespace libxmltv.Core Line 23  namespace libxmltv.Core
23          }          }
24          protected XMLTVSource(XMLTVRuntimeInstance xmltv)          protected XMLTVSource(XMLTVRuntimeInstance xmltv)
25          {          {
26              xmltv_logger.Log.Verbose.Debug.WriteLine("Creating Instance of XMLTVSource");              xmltv_logger.Verbose.Debug.WriteLine("Creating Instance of XMLTVSource");
27              //IXMLTV_PARSER _xmltv;              //IXMLTV_PARSER _xmltv;
28              //if (!Internals.VerifyInstance<IXMLTV_PARSER>(xmltv, out _xmltv)) { return; }              //if (!Internals.VerifyInstance<IXMLTV_PARSER>(xmltv, out _xmltv)) { return; }
29              //XMLTV_PARSER = _xmltv;              //XMLTV_PARSER = _xmltv;
# Line 42  namespace libxmltv.Core Line 42  namespace libxmltv.Core
42          {          {
43              var doc = XDocument.Parse(instance.XmlDoc);              var doc = XDocument.Parse(instance.XmlDoc);
44              Debug.Assert(doc.Root.Name == XMLTVConstants.ROOT_ELEMENT, string.Format("Expected Root Element: '{0}' but read: '{1}'", XMLTVConstants.ROOT_ELEMENT, doc.Root.Name));              Debug.Assert(doc.Root.Name == XMLTVConstants.ROOT_ELEMENT, string.Format("Expected Root Element: '{0}' but read: '{1}'", XMLTVConstants.ROOT_ELEMENT, doc.Root.Name));
45              //xmltv_logger.Log.Verbose.Debug.WriteLine("\tRoot: {0}", doc.Root.Name);              //xmltv_logger.Verbose.Debug.WriteLine("\tRoot: {0}", doc.Root.Name);
46              var attributes = doc.Root.Attributes().ToList();              var attributes = doc.Root.Attributes().ToList();
47              foreach (var attribute in attributes)              foreach (var attribute in attributes)
48              {              {
49                  //xmltv_logger.Log.Verbose.Debug.WriteLine("\t{0}: {1}", attribute.Name, attribute.Value);                  //xmltv_logger.Verbose.Debug.WriteLine("\t{0}: {1}", attribute.Name, attribute.Value);
50                  entries.Add(attribute.Name.ToString(), attribute.Value);                  entries.Add(attribute.Name.ToString(), attribute.Value);
51              }              }
52    

Legend:
Removed from v.49  
changed lines
  Added in v.55

  ViewVC Help
Powered by ViewVC 1.1.22