3.3. Testing SAX Support

SAX is an acronym we will be using a lot in this book. It stands for Simple API for XML. An application programming interface (API) is simply a collection of named operations that a program can perform to interface with a system.

SAX is a standardized API for interfacing to XML parsers. By using SAX, you can change the XML parser used in a program without having to modify the program itself. Much more on SAX later on. Here, we just want to make sure it works on your machine.

On the CD-ROM you will find a Python program testsax.py that performs a simple test of the SAX part of the XML package. Executing testsax.py should produce the following output:

 CD-ROM reference=3003.txt Element Employee has started Element Name ...

Get XML Processing with Python now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.