/[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 78 by william, Sat Mar 9 11:36:24 2013 UTC revision 88 by william, Sat Mar 9 14:52:10 2013 UTC
# Line 28  namespace libxmltv.Core Line 28  namespace libxmltv.Core
28          //    this.GeneratorUrl = generatorurl;          //    this.GeneratorUrl = generatorurl;
29          //}          //}
30          public XMLTVSource()          public XMLTVSource()
31              : base(null, XMLTVConstants.ROOT_ELEMENT)              : base(null, XMLTVConstants.Root.RootElement)
32          {          {
33              this.SourceName = string.Empty;              this.SourceName = string.Empty;
34              this.GeneratorName = string.Empty;              this.GeneratorName = string.Empty;
35              this.GeneratorUrl = string.Empty;              this.GeneratorUrl = string.Empty;
36          }          }
37          public XMLTVSource(XMLTVRuntimeInstance instance) : base(instance, XMLTVConstants.ROOT_ELEMENT)          public XMLTVSource(XMLTVRuntimeInstance instance)
38                : base(instance, XMLTVConstants.Root.RootElement)
39          {          {
40              try {              try {
41              xmltv_logger.Verbose.Debug.WriteLine("Creating Instance of XMLTVSource");              xmltv_logger.Verbose.Debug.WriteLine("Creating Instance of XMLTVSource");
# Line 84  namespace libxmltv.Core Line 85  namespace libxmltv.Core
85          private void Create()          private void Create()
86          {          {
87              var doc = XDocument.Parse(this.GetInstance().XmlDoc);              var doc = XDocument.Parse(this.GetInstance().XmlDoc);
88              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.RootElement, string.Format("Expected Root Element: '{0}' but read: '{1}'", XMLTVConstants.Root.RootElement, doc.Root.Name));
89              //xmltv_logger.Verbose.Debug.WriteLine("\tRoot: {0}", doc.Root.Name);              //xmltv_logger.Verbose.Debug.WriteLine("\tRoot: {0}", doc.Root.Name);
90              var attributes = doc.Root.Attributes().ToList();              var attributes = doc.Root.Attributes().ToList();
91              foreach (var attribute in attributes)              foreach (var attribute in attributes)

Legend:
Removed from v.78  
changed lines
  Added in v.88

  ViewVC Help
Powered by ViewVC 1.1.22