factory.setFeature("http://xml.org/sax/features/namespace-prefixes", false);
XMLReader xmlReader = factory.newSAXParser().getXMLReader();
xmlReader.setContentHandler(saxFilter);
xmlReader.parse(inputSource);
} catch (ParserConfigurationException pce) {
throw new ParseException(pce, -1, -1);
} catch (SAXParseException e) {
Exception wrappedExc = e.getException();
if (null == wrappedExc) {
wrappedExc = e;
}
throw new ParseException(wrappedExc, e.getLineNumber(), e.getColumnNumber());
} catch (SAXException e) {
Exception wrappedExc = e.getException();
if (null == wrappedExc) {
wrappedExc = e;
}
if (wrappedExc instanceof StatementHandlerException) {
throw (StatementHandlerException) wrappedExc;
} else {
throw new ParseException(wrappedExc, -1, -1);
}
} finally {
// Clean up
saxFilter.clear();
baseURI = null;