I need to apply some xml templates to various streams of xml data (and files, on occasion) and there seem to be a large number of xml libraries for java out there — enough that it’s difficult to quickly determine which libraries are still active, how they differ from the other options that are also active, and what criteria should be considered when choosing one.
What libraries do you use for manipulating xml in java, and why is it better than the alternatives?
saxon is the xslt and xquery parser — http://saxon.sourceforge.net/. this is built by a known xslt expert(who was on the xslt spec committe and who has authored books). there is an open source version and a commercial version.
It(xslt piece) gets continuously improved .
the other xslt tool in java, is of course, XALAN.
xml — there are so many. notable(well tested over the years) ones
1) jdk xml parser — dom, sax, stax
2) xerces : from apache
3) XOM — if DOM doesn’t work for you
4) JDOM — one of the earlier popular open source tool
5) JAXB — built into the JDK 6 now
6) woodstox — nice xml processor(read/write) — http://woodstox.codehaus.org/