public class ElementState
Assists in the tracking of document state information
during SAX parsing, retaining the necessary information
to construct all element scheme XPointer expressions
that can be used to identify each element in a document.
The state is started again when a new document is started.
As each new element is parsed in, a new element state is created,
wrapping the parent element's state as a property.
The state keeps track of ancestor element states, the id of the current
element, if any, and the order which is set equal to the number of children
so far for the parent element state.
public ElementState(ElementState parent,
parent - The state of the parent element
attrs - The attributes of the element (make sure that these are a clone of the
originals received by the SAX parser or the state will get really messed up
Use the org.xml.sax.helpers.AttributesImpl(Attributes) constructor to clone the