[Mono-bugs] [Bug 80308][Wis] New - XmlTextReader.ReadChars fails for nested elements

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Mon Dec 18 15:25:24 EST 2006


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=80308

--- shadow/80308	2006-12-18 15:25:24.000000000 -0500
+++ shadow/80308.tmp.29843	2006-12-18 15:25:24.000000000 -0500
@@ -0,0 +1,55 @@
+Bug#: 80308
+Product: Mono: Class Libraries
+Version: 1.2
+OS: 
+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: XmlTextReader.ReadChars fails for nested elements
+
+Description of Problem:
+If XmlTextReader.ReadChars is called on an element that has another element
+as a child an exception is thrown.
+
+Steps to reproduce the problem:
+1. create an xml such as: "<root><text>AAAA</text></root>"
+2. call XmlTextReader.ReadChars() on the root node
+
+Actual Results:
+Unhandled Exception: System.Xml.XmlException: 'root' is expected
+file:///data/home/hcs/Sulinet/Projects/Bugs/mono-new/test.xml Line 1,
+position 2.
+  at System.Xml.XmlTextReader.Expect (System.String expected) [0x00049] in
+/data/home/hcs/mono-1.2.2.1/mcs/class/System.XML/System.Xml/XmlTextReader.cs:2780
+
+  at System.Xml.XmlTextReader.ReadEndTag () [0x00069] in
+/data/home/hcs/mono-1.2.2.1/mcs/class/System.XML/System.Xml/XmlTextReader.cs:1476
+
+  at System.Xml.XmlTextReader.ReadCharsInternal (System.Char[] buffer,
+Int32 offset, Int32 length) [0x00083] in
+/data/home/hcs/mono-1.2.2.1/mcs/class/System.XML/System.Xml/XmlTextReader.cs:2879
+
+  at System.Xml.XmlTextReader.ReadChars (System.Char[] buffer, Int32
+offset, Int32 length) [0x00072] in
+/data/home/hcs/mono-1.2.2.1/mcs/class/System.XML/System.Xml/XmlTextReader.cs:672
+
+  at Test02.Test.Main (System.String[] args) [0x00037] in
+/data/home/hcs/Sulinet/Projects/Bugs/mono-new/Test01.cs:23
+
+Expected Results:
+<text>AAAA</text>
+
+How often does this happen? 
+Always.
+
+Additional Information:
+mono 1.2.2.1, x86_64


More information about the mono-bugs mailing list