What JDOM Doesn't Do

There is more to JDOM than what you've seen in the brief tour in this chapter. Chapter 15 will cover the capabilities of the various JDOM classes like Element and Attribute in depth, as well as take a deeper look at how these constructs are represented. However, before we take that up, it's worth taking a few minutes to note the features JDOM doesn't have, which might lead you to choose a different API instead.

First of all, JDOM cannot handle documents larger than available memory. JDOM loads the entire document tree into memory and keeps it there. JDOM is more memory efficient than some DOM implementations and less efficient than others. However, it's never going to be competitive with SAX or XMLPULL for truly humongous ...

Get Processing XML with Java™: A Guide to SAX, DOM, JDOM, JAXP, and TrAX 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.