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 '