gtpx1m0c | XML User's Guide |
The Simple API for XML (SAX) specification is an event-based interface developed by members of the XML-DEV mailing list. It uses the parser to access XML data as a series of events in a straight line, which means that the parser finds information in the XML document without retaining state or context information.
When writing applications using the SAX specification, you will use a set of C/C++ APIs to interact with the XML data. The documentation for these functions was included in the XML4C package that was ported to TPF. To view the API documentation, go to XML4C Version 3.5.1 Documentation.
The SAX API can provide faster and less costly processing of XML data when you do not need to access all of the data in an XML document. The SAX API does the following:
The SAX API is best for applications that need to access a specific piece of data and do not need to understand its relationship to surrounding elements. SAX is also ideal for information that is both generated by and readable by a machine. However, SAX cannot traverse the data, which makes it more expensive when you want to access data repeatedly from an XML document.
According to the Megginson Technologies Web site, SAX2 is a new version of Simple API for XML (SAX) that adds support for namespaces. among other things. For more information about the SAX API at each of these levels, go to XML4C Version 3.5.1 Documentation.
For more information, do the following: