Error when parsing an XML file to DOM

katticiehetry

New Member
I'm trying to parse an XML file using DocumentBuilderFactory as follows:\[code\]DocumentBuilderFactory ndsParserFactory = DocumentBuilderFactory.newInstance( );ndsParserFactory.setNamespaceAware( true );DocumentBuilder ndsParser = ndsParserFactory.newDocumentBuilder( );Document ndsDocument = ndsParser.parse( ndsFileInputStream );\[/code\]where ndsFileInputStream is an InputStream wrapping the file containing the XML.I get an exception when the file contains a Unicode character such as
 
Back
Top