JDOM 1.0 proposes an API set that enables an easy and effective way to read, write, and manage XML data. The specification is similar to DOM, and is fully compatible with both DOM and SAX. Like DOM, JDOM creates an in-memory representation of the XML data. However, unlike DOM, JDOM takes fewer resources to create the in-memory representation, thus making it more efficient than DOM. Additionally, the namespace handling capability of JDOM is more efficient than that of DOM. JDOM also ensures that the XML data is well-formed. JDOM can read and write DOM and handle SAX events, ensuring that the applications that use DOM or SAX can work seamlessly with JDOM. Architecturally, JDOM is completely optimized for Java. This enables the developers to leverage the full power of the Java platform while using JDOM to process XML applications. Similar to the other Java APIs for XML, JDOM also follows a pluggable architecture, thus making it possible to select a JDOM implementation at runtime. This makes the applications using JDOM portable. You can get more information about JDOM at http://www.jcp.org/ and http://jdom.org/. |