Easy Reading: Using DOM4J to Read XML Documents

DOM-based programs often turn out to be clumsy and hard to read. Some of the DOM methods for reading and manipulating XML are not the most desirable. The open-source DOM4J project provides a cleaner API that makes XML processing much smoother. It's not part of Java's core, so you'll need to download the DOM4J library and add it to your classpath. There are DOM4J objects that are analogous to each the DOM objects, but they have a different API and use different methods and classes. Unfortunately, they have the same names as some of the DOM classes. Be careful that you don't get the DOM classes and ...

Get Wicked Cool Java 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.