use of org.apache.axiom.core.stream.sax.ContentHandlerXmlHandler in project webservices-axiom by apache.
the class XMLReaderImpl method parse.
private void parse() throws SAXException {
XmlHandler handler = new ContentHandlerXmlHandler(contentHandler, lexicalHandler);
CoreElement contextElement = root.getContextElement();
if (contextElement != null) {
handler = new NamespaceContextPreservationFilterHandler(handler, contextElement);
}
try {
root.internalSerialize(handler, cache);
} catch (CoreModelException ex) {
throw new SAXException(ex);
} catch (StreamException ex) {
throw (SAXException) ex.getCause();
}
}
Aggregations