use of org.apache.axiom.om.impl.intf.AxiomDocument in project webservices-axiom by apache.
the class OMXMLParserWrapperImpl method getDocumentElement.
@Override
public final OMElement getDocumentElement(boolean discardDocument) {
try {
OMDocument document = getDocument();
OMElement element = document.getOMDocumentElement();
if (discardDocument) {
element.detach();
((AxiomDocument) document).coreDiscard(false);
}
return element;
} catch (CoreModelException ex) {
throw AxiomExceptionTranslator.translate(ex);
}
}
Aggregations