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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to