3.0 Simple API for XML (SAX) Interfaces

The following C++ interfaces and methods for receiving information about XML documents are patterned after the Java implementation of version 1 of the Simple API for XML (SAX) event interface. For additional documentation about this interface, see Megginson Technologies.

Exceptions are not enabled by default. Instead, the methods return a pointer to a SAXException interface. If the method returns null, there was no error.

The Parser, DocumentHandler and DTDHandler interfaces have a method to enable exceptions. To enable exceptions for C++, you must call the enableExceptions method with a non-zero value.

Since C++ allows overloading, C++ methods use the same name as the Java methods.

The SAX parser implements the following interfaces:

The SAX application implements the following interfaces: