lisp is winner in DOM parsing contest! 8-]

Peter Hansen peter at engcorp.com
Mon Jul 12 09:20:04 EDT 2004


R. Mattes wrote:

> But you never got to a _full_ DOM with you lxml parsing. What you got was
> a list-of-lists. There's no 'parent' implementation for your lxml
> elements (which means that you might need to path the whole thing
> arround all the time).
> 
> If you want a serious comparison you either need to compare s-xml with
> similar "lightweight" parsers in Perl/Python/Ruby etc. 

If that's what he wants, it would be called PyRXP in the Python world,
a Python wrapper around the RXP library, available from 
http://www.reportlab.com/ .  Has a much smaller footprint than the
DOM representations, as you would expect, and lightning fast.

-Peter



More information about the Python-list mailing list