Class Node

  • Direct Known Subclasses:
    Element, TextNode

    public abstract class Node
    extends java.lang.Object
    Abstract base class for XML nodes.
    • Constructor Detail

      • Node

        public Node()
    • Method Detail

      • getParent

        public Element getParent()
        Returns:
        The parent element of the node.
      • setParent

        protected void setParent​(Element parent)
        Sets the parent element of the node.
        Parameters:
        parent - New parent for this node.