8.10. A Standardized Event-Driven Processing Model

Although the philosophical approach used in event-driven XML processing is clear, it seems that no two developers can agree on a naming convention for how to implement it!

For every XML parser, there is yet another variation on the event-driven processing approach that uses slightly different ways of registering callback functions, slightly different ways of passing parameters to callbacks, slightly different ways of terminating processing, and so on.

Luckily, there is a standard way to do it in the XML world in the form of SAX—simple API for XML. We will take a good look at SAX in chapter 10.

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.