Package org.dom4j.io

Class DOMWriter


  • public class DOMWriter
    extends java.lang.Object
    DOMWriter takes a DOM4J tree and outputs it as a W3C DOM object
    • Constructor Detail

      • DOMWriter

        public DOMWriter()
      • DOMWriter

        public DOMWriter(java.lang.Class<?> domDocumentClass)
    • Method Detail

      • setDomDocumentClass

        public void setDomDocumentClass(java.lang.Class<?> domDocumentClass)
        Sets the DOM Documentimplementation class used by the writer when creating DOM documents.
        Parameters:
        domDocumentClass - is the Class implementing the Document interface
      • setDomDocumentClassName

        public void setDomDocumentClassName(java.lang.String name)
                                     throws DocumentException
        Sets the DOM Documentimplementation class name used by the writer when creating DOM documents.
        Parameters:
        name - is the name of the Class implementing the Document interface
        Throws:
        DocumentException - if the class could not be loaded
      • appendDOMTree

        protected void appendDOMTree(org.w3c.dom.Document domDocument,
                                     org.w3c.dom.Node domCurrent,
                                     java.util.List<Node> content)
      • appendDOMTree

        protected void appendDOMTree(org.w3c.dom.Document domDocument,
                                     org.w3c.dom.Node domCurrent,
                                     Element element)
      • appendDOMTree

        protected void appendDOMTree(org.w3c.dom.Document domDocument,
                                     org.w3c.dom.Node domCurrent,
                                     CDATA cdata)
      • appendDOMTree

        protected void appendDOMTree(org.w3c.dom.Document domDocument,
                                     org.w3c.dom.Node domCurrent,
                                     Comment comment)
      • appendDOMTree

        protected void appendDOMTree(org.w3c.dom.Document domDocument,
                                     org.w3c.dom.Node domCurrent,
                                     java.lang.String text)
      • appendDOMTree

        protected void appendDOMTree(org.w3c.dom.Document domDocument,
                                     org.w3c.dom.Node domCurrent,
                                     Entity entity)
      • appendDOMTree

        protected void appendDOMTree(org.w3c.dom.Document domDoc,
                                     org.w3c.dom.Node domCurrent,
                                     ProcessingInstruction pi)
      • writeNamespace

        protected void writeNamespace(org.w3c.dom.Element domElement,
                                      Namespace namespace)
      • attributeNameForNamespace

        protected java.lang.String attributeNameForNamespace(Namespace namespace)
      • isNamespaceDeclaration

        protected boolean isNamespaceDeclaration(Namespace ns)
      • resetNamespaceStack

        protected void resetNamespaceStack()