Hi Daniel,

>   yes it's what I suggest, it shoudl work, test it and send the patch :-)

Here is the patch; it compiles and passes all the test cases so it should
be okay :)

Cheers,

Michael

-- 
Print XML with Prince!
http://www.princexml.com
Index: parser.c
===================================================================
RCS file: /cvs/gnome/libxml2/parser.c,v
retrieving revision 1.443
diff -u -r1.443 parser.c
--- parser.c    22 Oct 2005 02:04:26 -0000      1.443
+++ parser.c    17 Nov 2005 00:37:59 -0000
@@ -8901,6 +8901,13 @@
     xmlChar *version;
 
     /*
+     * This value for standalone indicates that the document has an
+     * XML declaration but it does not have a standalone attribute.
+     * It will be overwritten later if a standalone attribute is found.
+     */
+    ctxt->input->standalone = -2;
+
+    /*
      * We know that '<?xml' is here.
      */
     SKIP(5);
_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
[email protected]
http://mail.gnome.org/mailman/listinfo/xml

Reply via email to