Open Codex HISTORICAL entry

2005 Feb 14 | XML ElementTree Data Model

I've been playing with Fredrik Lundh's ElementTree as an intuitive/pythonic way of processing XML. (While I like Aaron Swarz's XML Tramp, it is presently unsupported; ElementTree is fast and has XPath support.)

ElementTree Conventions

Posted by Martin Thomas at Wed Apr 25 17:58:46 2007
Thanks for this useful pockert reference.
Just a quick note, "Find all grandchildren of type 'author': doc.find('*/author')" is incorrect..
the .find method only returns the first ofay items found.  The .findall method will do as described.


Open Communities, Media, Source, and Standards

by Joseph Reagle