Java SAXParser parsing invalid xml

soffe

New Member
I'm trying to parse some xml which is invalid as the attributes are not in quotes, is there any way of getting around this? A simple example of this below, as well as the java code.XML\[code\]<car id=1>..</car>\[/code\]Java \[code\] SAXParserFactory factory = SAXParserFactory.newInstance(); factory.setValidating(false); SAXParser saxParser = factory.newSAXParser(); saxParser.parse(page, handler); //page is an input stream where the xml is.\[/code\]Thanks.
 
Back
Top