/[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

--- trunk/libxmltv/Core/XMLTVSource.cs	2013/03/09 14:33:18	87
+++ trunk/libxmltv/Core/XMLTVSource.cs	2013/03/09 14:52:10	88
@@ -28,13 +28,14 @@
         //    this.GeneratorUrl = generatorurl;
         //}
         public XMLTVSource()
-            : base(null, XMLTVConstants.ROOT_ELEMENT) 
+            : base(null, XMLTVConstants.Root.RootElement) 
         {
             this.SourceName = string.Empty;
             this.GeneratorName = string.Empty;
             this.GeneratorUrl = string.Empty;
         }
-        public XMLTVSource(XMLTVRuntimeInstance instance) : base(instance, XMLTVConstants.ROOT_ELEMENT)
+        public XMLTVSource(XMLTVRuntimeInstance instance)
+            : base(instance, XMLTVConstants.Root.RootElement)
         {
             try {
             xmltv_logger.Verbose.Debug.WriteLine("Creating Instance of XMLTVSource");
@@ -84,7 +85,7 @@
         private void Create()
         {
             var doc = XDocument.Parse(this.GetInstance().XmlDoc);
-            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));
             //xmltv_logger.Verbose.Debug.WriteLine("\tRoot: {0}", doc.Root.Name);
             var attributes = doc.Root.Attributes().ToList();
             foreach (var attribute in attributes)

 

  ViewVC Help
Powered by ViewVC 1.1.22