to the main page about the tutorial  THE XML REVOLUTION  -  TECHNOLOGIES FOR THE FUTURE WEB back up next

The SAX API

SAX (Simple API for XML) started as a grassroots movement, but has gained an official standing.

An XML tree is not viewed as a data structure, but as a stream of events generated by the parser.

The kinds of events are:

Scanning the XML file from start to end, each event invokes a corresponding callback method that the programmer writes.

An XML tree can be built in response, but it is not required to construct a data structure.

This is sometimes much more efficient:

back COPYRIGHT © 2000-2003 ANDERS MØLLER & MICHAEL I. SCHWARTZBACH next