JDOM, dom4j, and Deferred DOM

Before closing, we should mention JDOM, dom4j, and deferred DOM. JDOM and dom4j are very similar to DOM except that they were designed and written only for Java. This allows users to overload methods and to use other features of the Java language to make these Java representations of documents more intuitive to an experienced Java programmer. Some examples of JDOM and dom4j can be found in Chapter 7, “Successfully Using JSP and XML in an Application.”

Deferred DOM is an answer to the memory issues that large and complex DOM structures create. Through the use of deferred DOM, nodes are only created in memory when they are accessed. This is a feature that certain parsers, such as Xerces, support. This is a solution ...

Get JSP™ and XML Integrating XML and Web Services in Your JSP™ Application now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.