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 |
{ |
{ |
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(); |