| 
 | |||||||||
| PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES | ||||||||
See:
          Description
| Class Summary | |
|---|---|
| Element | An XML Element. | 
| Node | Base class for a node in an XMLTree. | 
| NodeWithChildren | Base class for a node with children. | 
| ProcessingInstruction | An XML processing instruction. | 
| Text | Character content in an XML document. | 
| TreeBuilder | Build an XMLTree from a SAX2 event stream, or by parsing an XML document. | 
XMLTree is a lightweight tree representation of an XML document.
XMLTree is desiged to be compatible with SAX2. An XMLTree contains (almost)
the same information as a SAX2 ContentHandler. It's easy
to construct an XMLTree from SAX2 events using TreeBuilder and to serialize an XMLTree into SAX2 events
using the Node.toSAX(org.xml.sax.ContentHandler) method.
Unlike DOM, XMLTree has no concept of a document, a document is equvivalent
to its root element. It's not possible to distinguish between a complete
document and a document fragment, both are simply representated by an Element.
Qualified names are representated as in QName.toString():
"{" + Namespace URI + "}" + local part. If the Namespace URI is empty, 
only the local part is used (no "{" "}").
| 
 | |||||||||
| PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES | ||||||||