XML technologies / XML / XML in a Nutshell / SAX reference
(Excerpt from "XML in a Nutshell" by Elliotte Rusty Harold & W. Scott Means)
SAX, the Simple API for XML, is an event-oriented interface for parsing XML documents. Unlike DOM, it is event-oriented. Almost all newer XML parser include a SAX implementation, including Xerces, MSXML, the Oracle XML Parser for Java and Ælfred. Thanks to David Megginson, SAX’s principal author, the interface is in the public domain. You may therefore work with the SAX source code available on the SAX home page.
SAX was originally developed as a Java-only API. This reference also focuses on Java, although the interface is conceptually language-independent and ports exist for C++, C#, Python, Perl and Eiffel.
Note: This reference covers SAX2. In 2004, SAX means SAX2 for all major XML parsers. The main difference between SAX1 and SAX2 is the introduction of namespaces. This extension required changes to almost all SAX methods and classes. The old SAX1 methods and classes remain valid but are considered obsolete (deprecated) and should no longer be used.
SAX 2.0.2 is a minor SAX2 update adding optional classes, features and properties without changing the core API. It was carefully designed for backward compatibility with SAX 2.0 and 2.0.1. Some, but not all, current parsers support SAX 2.0.2. Anything available only in SAX 2.0.2 is clearly marked in this reference.
Copyright © 2005 O'Reilly Verlag GmbH & Co. KG
You may print the online version for your private use.
Otherwise, this chapter from the book "XML in a Nutshell" is subject to the same conditions as the printed edition: the work and all its parts are protected by copyright. All rights reserved, including reproduction, translation, microfilming, and storage and processing in electronic systems.
O’Reilly Verlag GmbH & Co. KG, Balthasarstraße 81, 50670 Köln, kommentar(at)oreilly.de
back to top