--- trunk/libxmltv/Core/XMLTVSource.cs 2013/03/08 04:01:25 46 +++ trunk/libxmltv/Core/XMLTVSource.cs 2013/03/08 05:20:12 49 @@ -4,6 +4,7 @@ using System.Text; using libxmltv.Interfaces; using System.Diagnostics; +using System.Xml.Linq; namespace libxmltv.Core { @@ -39,7 +40,7 @@ private void Create() { - var doc = instance.XmlDoc; + var doc = XDocument.Parse(instance.XmlDoc); Debug.Assert(doc.Root.Name == XMLTVConstants.ROOT_ELEMENT, string.Format("Expected Root Element: '{0}' but read: '{1}'", XMLTVConstants.ROOT_ELEMENT, doc.Root.Name)); //xmltv_logger.Log.Verbose.Debug.WriteLine("\tRoot: {0}", doc.Root.Name); var attributes = doc.Root.Attributes().ToList();