Java Xerces implementation

There are some important activities involved in parsing, navigating and processing documents that the SAX standard does not cover. For example, writing out a structure into XML format is outside the scope of the standard. These features, if implemented at all, will differ in operation between parsers. For the sake of providing working examples, therefore, a specific parser has been chosen. In this case, the Xerces Java parser (available from xml.apache.org) is used throughout.

To use the Xerces parser, the following import statements are required:

import org.xml.sax.*;

import org.apache.xerces.parsers.SAXParser;

Apache provides classes for parsing an XML file or data stream, including one called 'SAXParser'. This ...

Get XML Companion, The, Third 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.