The JDOM Model

The JDOM Model

JDOM documents are composed of ten basic classes representing the different kinds of nodes in an XML document:

  • Document

  • Element

  • Attribute

  • Text

  • ProcessingInstruction

  • Namespace

  • Comment

  • DocType

  • EntityRef


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.

     Python   SQL   Java   php   Perl 
     game development   web development   internet   *nix   graphics   hardware 
     telecommunications   C++ 
     Flash   Active Directory   Windows