Oracle8i Application Developer's Guide - XML Release 3 (8.1.7) Part Number A86030-01 |
|
XDK for C++: Specifications and Cheat Sheet, 7 of 8
The SAX API is based on callbacks. Instead of the entire document being parsed and turned into a data structure which may be referenced (by the DOM interface), the SAX interface is serial. As the document is processed, appropriate SAX user callback functions are invoked. Each callback function returns an error code, zero meaning success, any non-zero value meaning failure. If a non-zero code is returned, document processing is stopped.
To use SAX, an xmlsaxcb structure is initialized with function pointers and passed to the xmlinit() call. A pointer to a user-defined context structure may also be included; that context pointer will be passed to each SAX function.
This SAX functionality is identical to the XML Parser for C version.
Table E-5 lists the XML Parser for C++, SAX API functions.
|
![]() Copyright © 1996-2000, Oracle Corporation. All Rights Reserved. |
|