ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/xmltv_parser/trunk/libxmltv/Core/XMLTV_PARSER.cs
(Generate patch)

Comparing trunk/libxmltv/Core/XMLTV_PARSER.cs (file contents):
Revision 23 by william, Thu Mar 7 11:08:48 2013 UTC vs.
Revision 24 by william, Thu Mar 7 11:11:20 2013 UTC

# Line 76 | Line 76 | namespace libxmltv.Core
76          private void ParsePrograms(XDocument doc)
77          {
78              XMLTV_LOGGER.Log.Verbose.Debug.WriteLine("Parsing Program Data");
79 +            var elements = doc.Root.Descendants(XMLTV_CONSTANTS.PROGRAM_ELEMENT).ToList();
80 +            foreach (var element in elements)
81 +            {
82 +                if (element.HasAttributes)
83 +                {
84 +                    foreach (var attribute in element.Attributes())
85 +                    {
86 +                        XMLTV_LOGGER.Log.Verbose.Debug.WriteLine("\t\t{0} {1}: {2}", element.Name, attribute.Name, attribute.Value);
87 +                    }
88 +                }
89 +                foreach (var childEllement in element.Descendants())
90 +                {
91 +                    if (childEllement.HasAttributes)
92 +                    {
93 +                        foreach (var attribute in childEllement.Attributes())
94 +                        {
95 +                            XMLTV_LOGGER.Log.Verbose.Debug.WriteLine("\t\t\t{0}: {1}", attribute.Name, attribute.Value);
96 +                        }
97 +                    }
98 +                    XMLTV_LOGGER.Log.Verbose.Debug.WriteLine("\t\t\t{0}: {1}", childEllement.Name, childEllement.Value);
99 +                }
100 +                //break;
101 +            }
102          }
103          #endregion
104      }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines