org.dom4j.io
public class DOMWriter extends Object
DOMWriter takes a DOM4J tree and outputs it as a W3C DOM
object
Version: $Revision: 1.17 $
| Constructor Summary | |
|---|---|
| DOMWriter() | |
| DOMWriter(Class domDocumentClass) | |
| Method Summary | |
|---|---|
| protected void | appendDOMTree(Document domDocument, Node domCurrent, List content) |
| protected void | appendDOMTree(Document domDocument, Node domCurrent, Element element) |
| protected void | appendDOMTree(Document domDocument, Node domCurrent, CDATA cdata) |
| protected void | appendDOMTree(Document domDocument, Node domCurrent, Comment comment) |
| protected void | appendDOMTree(Document domDocument, Node domCurrent, String text) |
| protected void | appendDOMTree(Document domDocument, Node domCurrent, Entity entity) |
| protected void | appendDOMTree(Document domDoc, Node domCurrent, ProcessingInstruction pi) |
| protected String | attributeNameForNamespace(Namespace namespace) |
| protected Document | createDomDocument(Document document) |
| protected Document | createDomDocument(Document document, DOMImplementation domImpl) |
| protected Document | createDomDocumentViaJAXP() |
| Class | getDomDocumentClass() |
| protected boolean | isNamespaceDeclaration(Namespace ns) |
| protected void | resetNamespaceStack() |
| void | setDomDocumentClass(Class domDocumentClass)
Sets the DOM org.w3c.dom.Documentimplementation class used by
the writer when creating DOM documents.
|
| void | setDomDocumentClassName(String name)
Sets the DOM org.w3c.dom.Documentimplementation class name used
by the writer when creating DOM documents.
|
| Document | write(Document document) |
| Document | write(Document document, DOMImplementation domImpl) |
| protected void | writeNamespace(Element domElement, Namespace namespace) |
Parameters: domDocumentClass is the Class implementing the {@linkorg.w3c.dom.Document } interface
Parameters: name is the name of the Class implementing the org.w3c.dom.Document interface
Throws: DocumentException if the class could not be loaded