Using 1.7.0, if I have a document in which whitespace appears before the
initial prolog, I get the error:

  The XML or Text declaration must start at line/column 1/1

Where is this required in the XML specification
(http://www.w3.org/TR/2000/REC-xml-20001006)?


According to Appendix F.1: "...each XML entity not accompanied by external
encoding information and not in UTF-8 or UTF-16 encoding MUST begin with an
XML encoding declaration, in which the first characters must be '<?xml' ...".

This makes sense.  If the document uses a non-standard encoding, special
rules are required.  But if UTF-8 or UTF-16 is used, the 'first characters'
restriction does not seem to apply and Xerces appears to be rejecting a
valid document.


                                                        -=- Jerry Carter

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to