Class NodeStack

All Implemented Interfaces:
Serializable, Cloneable, Iterable<Node>, Collection<Node>, List<Node>, RandomAccess, SequencedCollection<Node>

class NodeStack extends Stack<Node>
The NodeStack object is used to represent a stack of DOM nodes. Stacking DOM nodes is required to determine where within a stream of nodes you currently are. It allows a reader to produce end events when a node is popped from the stack.
See Also:
  • Constructor Details

    • NodeStack

      public NodeStack()
      Constructor for the NodeStack object. This will create a stack for holding DOM nodes. To ensure that the initial size is enough to cope with typical XML documents it is set large enough to cope with reasonably deep elements.