Example usage for org.jdom2.input.sax SAXHandler getDocument

List of usage examples for org.jdom2.input.sax SAXHandler getDocument

Introduction

In this page you can find the example usage for org.jdom2.input.sax SAXHandler getDocument.

Prototype

public Document getDocument() 

Source Link

Document

Returns the document.

Usage

From source file:org.mycore.common.content.MCRSAXContent.java

License:Open Source License

@Override
public Document asXML() throws JDOMException, IOException, SAXException {
    SAXHandler jdomContentHandler = new SAXHandler();
    xmlReader.setContentHandler(jdomContentHandler);
    xmlReader.parse(inputSource);/*w  w w .ja  va  2  s  .c  om*/
    return jdomContentHandler.getDocument();
}