[Mono-bugs] [Bug 41977][Nor] New - XmlNodeReader only returs first element.

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Sun, 27 Apr 2003 02:00:55 -0400 (EDT)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by miguel@ximian.com.

http://bugzilla.ximian.com/show_bug.cgi?id=41977

--- shadow/41977	Sun Apr 27 02:00:55 2003
+++ shadow/41977.tmp.875	Sun Apr 27 02:00:55 2003
@@ -0,0 +1,64 @@
+Bug#: 41977
+Product: Mono/Class Libraries
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: System.XML
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: miguel@ximian.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: XmlNodeReader only returs first element.
+
+The XmlNodeReader only returns the first element, the following program can
+be used to check this:
+
+using System;
+using System.Xml;
+
+public class X {
+	static void Main (string [] args)
+	{
+		XmlDocument doc = new XmlDocument ();
+		doc.Load (args [0]);
+
+		XmlNodeReader r = new XmlNodeReader (doc);
+
+		while (r.Read ()){
+			Console.WriteLine ("T: {0} - {1} ", r.NodeType, r.LocalName);
+		}
+	}
+	
+}
+
+compile:
+
+mcs test.cs 
+
+And run with the following test file:
+
+mono test.exe file.xml
+<?xml version="1.0" encoding="utf-8"?>
+<opml>
+  <body>
+    <outline title="BitWorking" description="Theories on software
+development." xmlurl="http://bitworking.org/index.rss"
+htmlurl="http://bitworking.org/" filename="BitWorking.xml" />
+    <outline title="The World Wide Web Consortium" description="Leading the
+Web to its Full&#xA;Potential..." etag=""
+xmlurl="http://www.w3.org/2000/08/w3c-synd/home.rss"
+htmlurl="http://www.w3.org/" filename="TheWorldWideWebConso.xml" />
+    <outline title="Aggie News" description="Aggie: The open source desktop
+news aggregator from Bitworking." etag="&quot;dc273-6c3-3cefe323&quot;"
+xmlurl="http://bitworking.org/AggieNews.xml"
+htmlurl="http://bitworking.org/Aggie.html" filename="AggieNews.xml" />
+  </body>
+</opml>
+
+This is used by the Aggie news aggregator.