SAXException iso-8859-2

HarrisPYse

New Member
I have an XML file which starts with \[code\]<?xml version="1.0" encoding="iso-8859-2"?>\[/code\]. I read it the following way:\[code\]SAXParserFactory.newInstance().newSAXParser().parse(is, handler);\[/code\]where \[code\]is\[/code\] is an InputStream and \[code\]handler\[/code\] is some arbitrary handler.Then I get this exception:\[code\]org.apache.harmony.xml.ExpatParser$ParseException: At line 41152, column 17: not well-formed (invalid token)\[/code\]Actually there is a degree sign at that position, enclosed in a CDATA like this:\[code\]<![CDATA[something
 
Back
Top