Hi Martin,
I will refer you to the Schema spec definition for XMLDecl, production 23:

XMLDecl ::=  '<?xml' VersionInfo EncodingDecl? SDDecl? S? '?>'

xerces-j 1.1.2 ->

just noted that this fails:
    <?xml version="1.0" standalone="no" encoding="ISO-8859-1" ?>
with:
    org.xml.sax.SAXParseException: The XML declaration must end with "?>"


In the XMLDecl, EncodingDecl is before SDDecl.


whereas this works:
    <?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>

also, seems i can leave the encoding attribute out of the xml file, but if
i don't include it in the xml declaration of my dtd, eg:

EncodingDecl is optional ( ? mean 0 or 1 ocurrence ).

also, seems i can leave the encoding attribute out of the xml file, but >if
i don't include it in the xml declaration of my dtd, eg:

I am not able to reproduce your last two claims since I don't really follow what you say about leaving out the encoding attribute out of the xml file but including it in your dtd.

Thanks,

                 Jeffrey Rodriguez
                 IBM Silicon Valley
                 XML Development


_________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at http://profiles.msn.com.



Reply via email to