[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 22:58:13 -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 22:37:35.000000000 -0400
+++ shadow/61274.tmp.18265 2004-07-08 22:58:13.000000000 -0400
@@ -116,6 +116,19 @@
throw new XmlException (this as
IXmlLineInfo,
"XML declaration cannot appear
in this state.");
}
+
+------- Additional Comments From ianm@activestate.com 2004-07-08 22:58 -------
+Is it in a spec somewhere that the xml declaration should not be
+acceptable for element ? The current ms behaviour is actually quite
+useful as it allows the use of the same piece of code to parse various
+types of xml fragments ( ie consider a full document as a subset of
+element ).
+
+I agree that propogating microsoft implementation errors isn't a
+particularly good thing but the counter argument is that the more
+incompatibilites exist the bigger the hassle it is to port code
+between the 2 platforms. If we're sure that the ms impl is wrong in
+this case then thats fine I can work around it.