XML Document with UTF-8 BOM but without declaration fails to parse
------------------------------------------------------------------

                 Key: XERCESC-1653
                 URL: http://issues.apache.org/jira/browse/XERCESC-1653
             Project: Xerces-C++
          Issue Type: Bug
          Components: Non-Validating Parser
    Affects Versions: 2.6.0, 2.7.0
         Environment: Windows, AIX
            Reporter: Maarten Koskamp
         Attachments: xmlUTF8.xml, xmlUTF8nodec.xml

En XML document starting with an UTF-8 BOM, but without a xml declaration gives 
a parse error:

Fatal Error at file E:\bomtest/xmlUTF8nodec.xml, line 1, char 1
  Message: Invalid document structure
scanFirst() failed

The same document with BOM and a xml declaration parses OK.

As far as i can tell from the XML spec, a XML document containing a UTF-8 BOM 
do not require a XML declaration to be present.



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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

Reply via email to