Posts Tagged ‘dom4j’


Simple XML Parsing using JAXB

I recently needed to parse a XML file using Java for a utility I was writing. A couple of years ago I used dom4j to parse XML (and wrote an article about it). I figured there had to be a more modern approach, similar to how Hibernate 3.0 can map POJOs (plain old Java objects) […]

Parsing and Generating XML with Java

December, 2008 Update: I now recommend using JAXB and annotated Java objects to parse and generate XML. See my article Simple XML Parsing using JAXB for details. I’ve worked a lot with XML over the years (i.e. for Ant build files), but I’ve never had to parse or generate XML in Java until recently. There […]