Sign In/My Account | View Cart  
advertisement

Article:
 Decomposition, Process, Recomposition
Subject: pulldom?
Date: 2004-08-04 06:26:34
From: Jakob_Lund

I haven't tried the code yet, but it seems that it does much the same thing as the python package xml.dom.pulldom - and that by using that package you could have achieved the same as the chunker class, only with less coding? Did I miss something?


Anyway, thank you for the article.


Previous Message Previous Message   Next Message No Next Message


Titles Only Titles Only Newest First
  • 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.



Sponsored By: