pulldom?
2004-08-04 07:18:44 Uche Ogbuji
[Reply]
I'm well aware of pulldom, as you can see by reading:
http://www.ibm.com/developerworks/xml/library/x-tipulldom.html
http://www.idealliance.org/papers/dx_xml03/papers/06-02-03/06-02-03.html
sax2dom_chunker does offer a couple of advantages.
1. It works with any arbitrary DOM, rather than just minidom, which can be an important consideration, depending on your use-case.
2. It does not require the user to specialze condition code by hand to navigate the events, but rather provides a simple declarative list-based pattern. This simplifies things for the user (though full XPattern support would be even better).
More importantly than all that is that it lays a foundation for more general techniques based on semi-automation of SAX state machines.
I really should have made all these points in the article itself. Thanks for making me address them.
By the way, sax2dom_chunker.py is fewer than 120 lines of actual Python code. Hardly a huge overhead for the benefits.