Interface Node

All Known Subinterfaces:
Child, Parent
All Known Implementing Classes:
Attribute, BasicNode, Comment, DocType, DocTypeAttributeList, DocTypeElement, DocTypeEntity, DocTypeNotation, DocTypeText, Document, Element, Entity, NodeWithChildren, ProcessingInstruction, Text, XMLDeclaration

public interface Node
Common interface for all nodes in an XML document.
See Also:
  • Method Details

    • toXML

      String toXML()
      Slow way to convert a node to XML
    • toXML

      Node toXML(XMLWriter writer) throws IOException
      Fast way to convert many nodes to XML
      Throws:
      IOException
    • getType

      Get the node type
    • copy

      Node copy(Node orig)
      Copy all data from orig into this
    • createClone

      Node createClone()
      Simulate clone()
    • copy

      Node copy()
      Simulate clone()