Chapter 15. 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

  • CDATA

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.



Processing XML with Java. A Guide to SAX, DOM, JDOM, JAXP, and TrAX
Processing XML with Javaв„ў: A Guide to SAX, DOM, JDOM, JAXP, and TrAX
ISBN: 0201771861
EAN: 2147483647
Year: 2001
Pages: 191

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net