June 7, 2011, 1:36 a.m.
posted by equivalent
The JDOM Model
JDOM documents are composed of ten basic classes representing the different kinds of nodes in an XML document:
In JDOM, node objects can belong to a Document, or they can exist independently. A complete JDOM Document contains a list of its children, which normally includes Comments, ProcessingInstructions, possibly a single DocType, and one Element object for the root element. The remaining structure of the document is built primarily from Element objects, each of which contains a list of its contents, as well as separate lists of attributes and namespaces for that element.