This week's book giveaway is in the OCMJEA forum. We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line! See this thread for details.
What alternatives are there to Apache Xerces, concerning XML validation from inside a Java application?
As far as I understand, Xerces is incorporated in the XML validation offered by the Java SE API (correct me if I am wrong).
I am looking for something that is not related to, or use, Xerces in any way.
Thanks in advance!
A version of Xerces was included in the Java SE. However, this version is not exactly the same as the Apache version. There are some differences in regards to performance.
Joined: Oct 04, 2006
Thanks for the replies - now I know how to tell a parser from a framework! :-)
It turned out that there was no bug in Apache Xerces - at least not that cause the problem I was set to solve.
The problem was deep hierarchies of XML schemas. In order for Xerces to traverse the entire hierarchies, a property telling Xerces to honour all XML schema locations had to be set (http://apache.org/xml/features/honour-all-schemaLocations).
There were some other issues as well, but the main issue was the honour-all-schema-locations.
Reference: http://xerces.apache.org/xerces2-j/features.html Best wishes!