static ProgramInformation LoadProgramInformation(XElement element)
        {
            var ns = element.GetDefaultNamespace().NamespaceName;
            var result = new ProgramInformation();

            result.Lang = (string)element.Attribute("lang");
            result.MoreInformationURL = (string)element.Attribute("moreInformationURL");
            result.AnyAttr.AddRange(element.Attributes());

            result.Title = (string)element.Element("Title");
            result.Source = (string)element.Element("Source");
            result.Copyright = (string)element.Element("Copyright");
            result.Any.AddRange(element.Elements());

            return result;
        }
Example #2
0
        static ProgramInformation LoadProgramInformation(XElement element)
        {
            var ns     = element.GetDefaultNamespace().NamespaceName;
            var result = new ProgramInformation();

            result.Lang = (string)element.Attribute("lang");
            result.MoreInformationURL = (string)element.Attribute("moreInformationURL");
            result.AnyAttr.AddRange(element.Attributes());

            result.Title     = (string)element.Element("Title");
            result.Source    = (string)element.Element("Source");
            result.Copyright = (string)element.Element("Copyright");
            result.Any.AddRange(element.Elements());

            return(result);
        }