[Mono-bugs] [Bug 61274][Wis] Changed - XmlValidatingReader throws exception if xml declatation present

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Thu, 8 Jul 2004 01:32:34 -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 ianm@activestate.com.

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

--- shadow/61274	2004-07-08 01:21:42.000000000 -0400
+++ shadow/61274.tmp.5410	2004-07-08 01:32:34.000000000 -0400
@@ -1,14 +1,14 @@
 Bug#: 61274
 Product: Mono: Class Libraries
 Version: unspecified
-OS: 
+OS: unknown
 OS Details: 
 Status: NEW   
 Resolution: 
-Severity: 
+Severity: Unknown
 Priority: Wishlist
 Component: Sys.XML
 AssignedTo: mono-bugs@ximian.com                            
 ReportedBy: ianm@activestate.com               
 QAContact: mono-bugs@ximian.com
 TargetMilestone: ---
@@ -55,6 +55,20 @@
 How often does this happen? 
 Consistently on both windows and linux with mono 1.0
 
 
 Additional Information:
 removing the xml declaration causes it to work.
+
+------- Additional Comments From ianm@activestate.com  2004-07-08 01:32 -------
+hmm looking again I find that after changing
+XmlValidatingReader reader = new XmlValidatingReader(xmlText,
+XmlNodeType.Element, null);   
+
+to 
+XmlValidatingReader reader = new XmlValidatingReader(xmlText,
+XmlNodeType.Document, null);   
+
+it works. Which makes sense since you would expect an xml declaration
+at  the document level but not for an element. 
+Still - this is probably another instance where it would be nice to be
+compatible with ms.net's behaviour.