/[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 46 by william, Fri Mar 8 04:01:25 2013 UTC revision 49 by william, Fri Mar 8 05:20:12 2013 UTC
# Line 4  using System.Linq; Line 4  using System.Linq;
4  using System.Text;  using System.Text;
5  using libxmltv.Interfaces;  using libxmltv.Interfaces;
6  using System.Diagnostics;  using System.Diagnostics;
7    using System.Xml.Linq;
8    
9  namespace libxmltv.Core  namespace libxmltv.Core
10  {  {
# Line 39  namespace libxmltv.Core Line 40  namespace libxmltv.Core
40    
41          private void Create()          private void Create()
42          {          {
43              var doc = 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.Log.Verbose.Debug.WriteLine("\tRoot: {0}", doc.Root.Name);
46              var attributes = doc.Root.Attributes().ToList();              var attributes = doc.Root.Attributes().ToList();

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

  ViewVC Help
Powered by ViewVC 1.1.22