JDOM is an open source Java-based document object model for XML that was designed specifically for the Java platform so that it can take advantage of its language features. JDOM integrates with Document Object Model (DOM) and Simple API for XML (SAX), supports XPath and XSLT. It uses external parsers to build documents.
JDom Java Doc Find here
- JDOM is Java platform specific. The API uses the Java language's built-in Stringsupport wherever possible, so that text values are always available asStrings. It also makes use of the Java 2 platform collection classes, likeListandIterator, providing a rich environment for programmers familiar with the Java language.
- No hierarchies. In JDOM, an XML element is an instance of Element, an XML attribute is an instance ofAttribute, and an XML document itself is an instance ofDocument. Because all of these represent different concepts in XML, they are always referenced as their own types, never as an amorphous "node."
- Class driven. Because JDOM objects are direct instances of classes like Document,Element, andAttribute, creating one is as easy as using thenewoperator in the Java language. It also means that there are no factory interfaces to configure -- JDOM is ready to use straight out of the jar.