/[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 44 by william, Fri Mar 8 03:36:44 2013 UTC revision 46 by william, Fri Mar 8 04:01:25 2013 UTC
# Line 22  namespace libxmltv.Core Line 22  namespace libxmltv.Core
22          }          }
23          protected XMLTVSource(XMLTVRuntimeInstance xmltv)          protected XMLTVSource(XMLTVRuntimeInstance xmltv)
24          {          {
25              XMLTV_LOGGER.Log.Verbose.Debug.WriteLine("Creating Instance of XMLTVSource");              xmltv_logger.Log.Verbose.Debug.WriteLine("Creating Instance of XMLTVSource");
26              //IXMLTV_PARSER _xmltv;              //IXMLTV_PARSER _xmltv;
27              //if (!Internals.VerifyInstance<IXMLTV_PARSER>(xmltv, out _xmltv)) { return; }              //if (!Internals.VerifyInstance<IXMLTV_PARSER>(xmltv, out _xmltv)) { return; }
28              //XMLTV_PARSER = _xmltv;              //XMLTV_PARSER = _xmltv;
# Line 41  namespace libxmltv.Core Line 41  namespace libxmltv.Core
41          {          {
42              var doc = instance.XmlDoc;              var doc = instance.XmlDoc;
43              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));
44              //XMLTV_LOGGER.Log.Verbose.Debug.WriteLine("\tRoot: {0}", doc.Root.Name);              //xmltv_logger.Log.Verbose.Debug.WriteLine("\tRoot: {0}", doc.Root.Name);
45              var attributes = doc.Root.Attributes().ToList();              var attributes = doc.Root.Attributes().ToList();
46              foreach (var attribute in attributes)              foreach (var attribute in attributes)
47              {              {
48                  //XMLTV_LOGGER.Log.Verbose.Debug.WriteLine("\t{0}: {1}", attribute.Name, attribute.Value);                  //xmltv_logger.Log.Verbose.Debug.WriteLine("\t{0}: {1}", attribute.Name, attribute.Value);
49                  entries.Add(attribute.Name.ToString(), attribute.Value);                  entries.Add(attribute.Name.ToString(), attribute.Value);
50              }              }
51    

Legend:
Removed from v.44  
changed lines
  Added in v.46

  ViewVC Help
Powered by ViewVC 1.1.22