I haven't found many ways to increase the performance of a Java application that does intensive XML processing other than to leverage hardware such as Tarari or Datapower. Does anyone know of any open source ways to accelerate XML parsing?
The SAX event-based parser is faster and consumes far less memory than the DOM parser; consequently, it allows developers to parse the data out of an XML document more effectively.
Answer. What are Xalan-Java and Xerces2-Java? These are 3rd party software which are used by the Sterling MCF product - Xalan-Java is an XSLT processor for transforming XML documents into HTML, text, or other XML document types. Xerces2-Java is a library for parsing, validating and manipulating XML documents.
There are two types of XML parsers namely Simple API for XML and Document Object Model.
Take a look at Stax (streaming) parsers. See the sun reference manual. One of the implementations is the woodstox project.
Since it hasn't been directly mentioned, I'll throw in Aalto, which is fastest java xml parser according to some measurements, like:
which are not written by Aalto developers.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With