Overview

dom4j is an XML manipulation library for Java - a friendlier DOM.

Case Studies

Tips and tricks

Gotchas

  • Event model allows memory-efficient processing of larger documents than will fit in memory - but has a memory leak evident when processing multi-gig XML documents.
  • No longer actively maintained - last update 2005. Not a huge problem, as it's feature-complete and mostly non-buggy.

Alternatives

  • For Java, JDOM and XOM are other DOM-like libraries. XOM aims to enforce correctness better than DOM4J, but is less easy to use. JDOM is very widely used, but older than and inferior to either XOM or DOM4J.
  • There are a number of Java StAX based pull parsers, of which Woodstox is currently the best. These are slightly less easy to use than DOM-style parsers, but more efficient.

Other Resources

 
dom4j.txt · Last modified: 2010/06/06 11:10 by twk
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki