Open Codex technology :: python :: elementtree-model

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

this entry posted to technology/python;
comments (1)




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.

//m



Name:


E-mail:


URL:


Comment:


NoSpam Magic Word:
The opposite of closed (the first word of this blog's title) is?

Open Communities, Media, Source, and Standards XML

by Joseph Reagle

powered by pyblosxom


reagle.org

What I'm reading online (blogroll)


Categories

Archives