2011/05/30

JDOM

What is JDOM?

Java + XML = JDOM

JDOM is a way to represent an XML document for easy and efficient reading, manipulation, and writing:
-Straightforward API
-Lightweight and fast
-Java-optimized

It not DOM, despite the similarity in name. It is an open source project with an Apache style license. JDOM is intended to be simple for Java programmers. It is supposed to hide the complexities of XML (I find this somewhat humorous because XML appears simple compared to Java). JDOM is to DOM/SAX as RMI is to CORBA.

JDOM offer 4 packages:
-org.jdom
-org.jdom.adapters
-org.jdom.input
-org.jdom.output

The first package contains classes representing parts of an XML document (i.e. element, CDATA, attribute, etc.). The input package contains classes for reading xml data from existing sources while the output package contains classes for writing xml data to various form of output.

The JDOM web site is http://jdom.org. I'll check into this later but for now it is getting late and I'll have to continue at a later time.

No comments:

Post a Comment