Choosing a Parser

Although the JAVA API for XML Processing defines standard interfaces to connect to XML parser implementations, various parsers are available to choose from. In this section, the three major parsers currently available in XML will be presented: the Apache Xerces Parser, the Apache Crimson Parser, and the GNU GNUJAXP parser (see Table 16.1).

Table 16.1. Major Java Parsers
Name License Features Location
Xerces Apache License JAXP 1.1 (with Xalan XSLT) http://xml.apache.org/xerces-j/
Crimson Apache License JAXP 1.1 minus the javax. xml.transform package http://xml.apache.org/crimson/index.html
GNUJAXP GNU Public License JAXP v1.1 http://www.gnu.org/software/classpathx/jaxp/

Note

In addition to the open source standalone Java parsers ...

Get Special Edition Using XML, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.