[Mono-bugs] [Bug 76260][Wis] New - XmlNodeReader reads past the end
of the node
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Wed Sep 28 13:21:19 EDT 2005
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 csaba.halasz at gmail.com.
http://bugzilla.ximian.com/show_bug.cgi?id=76260
--- shadow/76260 2005-09-28 13:21:19.000000000 -0400
+++ shadow/76260.tmp.27658 2005-09-28 13:21:19.000000000 -0400
@@ -0,0 +1,54 @@
+Bug#: 76260
+Product: Mono: Class Libraries
+Version: 1.1
+OS: GNU/Linux [Other]
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: Sys.XML
+AssignedTo: atsushi at ximian.com
+ReportedBy: Csaba.Halasz at gmail.com
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: XmlNodeReader reads past the end of the node
+
+Description of Problem:
+If you create an XmlNodeReader for a node in an XmlDocument
+it does not stop after reading the child nodes, but progresses through
+the remainder of the document.
+
+Steps to reproduce the problem:
+using System;
+using System.Xml;
+
+class Test
+{
+ public static void Main(string[] args)
+ {
+ XmlDocument doc = new XmlDocument();
+ doc.LoadXml("<root><child /></root>");
+ XmlReader Reader = new
+XmlNodeReader(doc.SelectSingleNode("root/child"));
+ while(Reader.Read())
+ {
+ Console.WriteLine("{0} {1}", Reader.NodeType, Reader.Name);
+ }
+ }
+}
+
+Actual Results:
+Element child
+EndElement root
+
+Expected Results:
+Element child
+
+How often does this happen?
+Always.
+
+Additional Information:
+Tested with 1.1.9 20050927
More information about the mono-bugs
mailing list