You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by "Hollenbeck, Scott" <sh...@verisign.com> on 2001/04/30 14:50:09 UTC

Encoding Attribute Placement

Might anyone offer any insights into why Xerces-J 1.3.1 is sensitive to
placement of the "encoding" and "standalone" attributes in an XML
declaration?  For example, these declarations works fine:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>

<?xml version="1.0" encoding="UTF-8"?>

but this one:

<?xml version="1.0" standalone="no" encoding="UTF-8"?>

produces an error:

>java sax.SAXCount -v foo.xml
[Fatal Error] foo.xml:1:37: The XML declaration must end with "?>".
org.xml.sax.SAXException: Stopping after fatal error: The XML declaration
must end with "?>".
...

<Scott/>

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org