This is a simple utility class that adapts StAX events from an
XMLEventReader to unmarshaller events on a
XmlVisitor , bridging between the two
parser technologies.
Represents an XML tag name (and attributes for start tags.)
This object is used so reduce the number of method call parameters
among unmarshallers.
An instance of this is expected to be reused by the caller of
XmlVisitor .
Walks the XML document structure.
Implemented by the unmarshaller and called by the API-specific connectors.
Event Call Sequence
The
XmlVisitor expects the event callbacks in the following order:
CALL SEQUENCE := startDocument ELEMENT endDocument
ELEMENT := startPrefixMapping ELEMENT endPrefixMapping
| startElement BODY endElement
BODY := text? (ELEMENT text?)*
Note in particular that text events may not be called in a row;
consecutive characters (even those separated by PIs and comments)
must be reported as one event, unlike SAX.
All namespace URIs, local names, and prefixes of element and attribute
names must be interned.