[Mono-bugs] [Bug 77374][Nor] New - XmlTextReader:ReadXmlDeclaration fails on compliant declaration

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Thu Jan 26 20:02:25 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 lukes at wetafx.co.nz.


--- shadow/77374	2006-01-26 20:02:25.000000000 -0500
+++ shadow/77374.tmp.24281	2006-01-26 20:02:25.000000000 -0500
@@ -0,0 +1,57 @@
+Bug#: 77374
+Product: Mono: Class Libraries
+Version: 1.1
+OS Details: 
+Status: NEW   
+Severity: 004 Four hours
+Priority: Normal
+Component: Sys.XML
+AssignedTo: atsushi at ximian.com                            
+ReportedBy: lukes at wetafx.co.nz               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+Summary: XmlTextReader:ReadXmlDeclaration fails on compliant declaration
+Description of Problem:
+The method System.Xml.XmlTextReader:ReadXmlDeclaration () throws an
+exception when parsing
+<?xml version="1.0" standalone="yes" encoding="UTF-8" ?>
+(which is valid), but works fine when parsing
+<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
+Steps to reproduce the problem:
+1. Compile attachment (mcs test.cs)
+2. Run against this content in test.xml (mono test.exe):
+<?xml version="1.0" standalone="yes" encoding="UTF-8" ?>
+<aDocument />
+Actual Results:
+Application throws an exception. If you reorder the attibutes as above, it
+works fine.
+Expected Results:
+Any ordering of the attributes should work in the same way, as per XML 1.x
+How often does this happen? 
+Additional Information:
+Here is test.cs:
+-- test.cs START
+using System;
+using System.Xml;
+class aClass {
+   public static void Main() {
+       XmlReader _reader = new XmlTextReader("test.xml");
+       XmlDocument _theDocument = new XmlDocument();
+       _theDocument.Load(_reader);
+       _reader.Close();
+   }
+-- test.cs END

More information about the mono-bugs mailing list