The Key JAXP Classes and Interfaces for SAX Support

The classes and interfaces that are critical for an application to parse an XML document using a SAX parser are discussed in the following sections.

The SAXParserFactory Class

SAXParserFactory is an abstract class that defines the factory API that enables an application to get an instance of the SAXParser class. The instance of the SAXParser class provides the SAX-based parser to parse XML documents.

An instance of the SAXParserFactory class can be obtained by using the static newInstance() method of the SAXParserFactory class. The actual SAX parser that is loaded depends on the entry of the javax.xml.parsers.SAXParserFactory system property. The default implementation associated with the Java ...

Get Java™ APIs for XML Kick Start now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.