Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xerces2 XML parser and Xalan XSLT processor -- state and replacement?

It is year 2018. What is the state of the Xerces2 XML parser and Xalan XSLT processor libraries for Java? Their last releases appear to be 2.11.0 in 2013 and 2.7.2 in 2014 respectively.

  • Are they still maintained?

  • Are they so perfect that they do not need even occasional patch release?

  • Are there replacement libraries from different vendors that one could use instead? Are these replacements free in the same way as these two?

  • Can one generally do without these with just what JDK offers?

like image 243
wilx Avatar asked Apr 10 '18 09:04

wilx


2 Answers

Active development of Xerces and Xalan stopped much earlier than these last releases. In between there were plenty of patch releases to fix bugs. It's quite natural that after a few years of issuing bug fixes only, with no new development, software becomes very stable and no further maintenance releases are required.

For many years I used to advise using the Apache version of Xerces because it was more reliable than the version in the JDK: the JDK version had some nasty bugs and Sun/Oracle seemed in no hurry to fix them. I think that has now changed; the JDK versions are now perfectly usable.

If you need XSLT features beyond the 1.0 level, then switch from Xalan to Saxon.

like image 190
Michael Kay Avatar answered Oct 19 '22 16:10

Michael Kay


Basically these are jaxp implementations that were donated to Apache by different companies. Crimson is another one that was donated by SUN. These days a jaxp implementation is bundled with the JDK so there is very little reason to use an alternative implementation. As I recall from way back, you'd typically pull in xerces or xalan as a dependency when doing j2ee applications before that was the case.

check the unoffical jaxp faq

like image 1
Jilles van Gurp Avatar answered Oct 19 '22 17:10

Jilles van Gurp