12.10. Hybrid Event- or Tree-driven Processing

Tree-driven Pyxie programming is generally more pleasant than event-driven programming because you have full access to the XML document structure. There is a price to pay for this full access, however. Xtree-based processing is significantly more resource hungry than is xDispatch-based processing.

That said, it is often the case that the need for full tree access to an XML document is only necessary for fragments of the document. Perhaps the classic example of this is table structures such as HTML tables and CALS tables. It is very often painful to have to process these in an event-oriented fashion.

Pyxie provides a hybrid event- or tree-driven processing facility that allows you to start processing ...

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.