[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.


--- 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 Details: 
+Status: NEW   
+Priority: Wishlist
+Component: Sys.XML
+AssignedTo: atsushi at ximian.com                            
+ReportedBy: Csaba.Halasz at gmail.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+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
+  at System.Xml.XmlTextReader.ReadEndTag () [0x00069] in
+  at System.Xml.XmlTextReader.ReadCharsInternal (System.Char[] buffer,
+Int32 offset, Int32 length) [0x00083] in
+  at System.Xml.XmlTextReader.ReadChars (System.Char[] buffer, Int32
+offset, Int32 length) [0x00072] in
+  at Test02.Test.Main (System.String[] args) [0x00037] in
+Expected Results:
+How often does this happen? 
+Additional Information:
+mono, x86_64

More information about the mono-bugs mailing list