Example usage for org.dom4j.io DOMWriter DOMWriter

List of usage examples for org.dom4j.io DOMWriter DOMWriter

Introduction

In this page you can find the example usage for org.dom4j.io DOMWriter DOMWriter.

Prototype

public DOMWriter(Class<?> domDocumentClass) 

Source Link

Usage

From source file:org.orbeon.oxf.processor.DOMSerializer.java

License:Open Source License

public org.w3c.dom.Document getW3CDocument(PipelineContext pipelineContext) {
    DOMWriter writer = new DOMWriter(XMLUtils.createDocument().getClass());
    try {/*  w  w  w .j a  va  2  s.c  o m*/
        return writer.write(getDocument(pipelineContext));
    } catch (DocumentException e) {
        throw new OXFException(e);
    }
}