List of usage examples for org.dom4j.io DOMWriter DOMWriter
public DOMWriter(Class<?> domDocumentClass)
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); } }