/[xmltv_parser]/trunk/libxmltv/Core/XMLTVParser.cs
ViewVC logotype

Diff of /trunk/libxmltv/Core/XMLTVParser.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- trunk/libxmltv/Core/XMLTV_PARSER.cs	2013/03/07 11:08:48	23
+++ trunk/libxmltv/Core/XMLTV_PARSER.cs	2013/03/07 11:11:20	24
@@ -76,6 +76,29 @@
         private void ParsePrograms(XDocument doc)
         {
             XMLTV_LOGGER.Log.Verbose.Debug.WriteLine("Parsing Program Data");
+            var elements = doc.Root.Descendants(XMLTV_CONSTANTS.PROGRAM_ELEMENT).ToList();
+            foreach (var element in elements)
+            {
+                if (element.HasAttributes)
+                {
+                    foreach (var attribute in element.Attributes())
+                    {
+                        XMLTV_LOGGER.Log.Verbose.Debug.WriteLine("\t\t{0} {1}: {2}", element.Name, attribute.Name, attribute.Value);
+                    }
+                }
+                foreach (var childEllement in element.Descendants())
+                {
+                    if (childEllement.HasAttributes)
+                    {
+                        foreach (var attribute in childEllement.Attributes())
+                        {
+                            XMLTV_LOGGER.Log.Verbose.Debug.WriteLine("\t\t\t{0}: {1}", attribute.Name, attribute.Value);
+                        }
+                    }
+                    XMLTV_LOGGER.Log.Verbose.Debug.WriteLine("\t\t\t{0}: {1}", childEllement.Name, childEllement.Value);
+                }
+                //break;
+            }
         }
         #endregion
     }

 

  ViewVC Help
Powered by ViewVC 1.1.22