org.xml.sax.SAXException: The encoding "ASCII " is not supported 2003-01-20 - By Hermann Angstl
Hi,
i am using xerces (tried both, DOM and SAX) and get the following exception:
org.xml.sax.SAXException: The encoding "ASCII" is not supported
my code: ... Parser parser = ParserFactory.makeParser("org.apache.xerces.parsers.SAXParser"); parser.setDocumentHandler(this); parser.setErrorHandler(this); parser.parse(myURL); ...
The XML i want to parse:
<?xml version="1.0" encoding="ASCII" ?> <connector_desc> <app_desc name="MainApp" buffersize="0" urlVersion="2"> <instance id="1" port="1823" host="ibm-01" /> <instance id="2" port="1824" host="ibm-01" /> </app_desc> </connector_desc>
Enable/disable validation doesn't change anything :(( Does this really mean that the parser can't parse US-ASCII ?
cu, hal
--------------------------------------------------------------------- To unsubscribe, e-mail: xerces-j-user-unsubscribe@(protected) For additional commands, e-mail: xerces-j-user-help@(protected)
|
|