OSNews links to this great article on SAX processing in Python on DevChannel by Derek Fountain:
An
application developer can choose any one of a number of strategies to read and use an XML
document. In some very simple examples a script containing a
number of regular expressions might do the job, but normally
a more rigorous technique is required. The Simple API for XML
(SAX) is one of the two key techniques for analysing and processing
XML documents (the other is the more complicated Document Object Model (DOM)).
application developer can choose any one of a number of strategies to read and use an XML
document. In some very simple examples a script containing a
number of regular expressions might do the job, but normally
a more rigorous technique is required. The Simple API for XML
(SAX) is one of the two key techniques for analysing and processing
XML documents (the other is the more complicated Document Object Model (DOM)).
The article is very timely, as I’ve just
been working to convert some XML processing into Python.