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 Comment s, ProcessingInstruction s, 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. |