Java-utils-xml is a project mainly written in Java, it's free.
Java xml utilities
Utility classes for writing XML documents in a sane way.