[Tutor] xml

Kent Johnson kent37 at tds.net
Wed May 25 00:33:27 CEST 2005


D. Hartley wrote:
> And just in case anyone *isnt* working on the riddles....:
> 
> anyone have a pointer to a *SIMPLE* intro to xml as used in python? I
> looked in the library and there are about 11 xml-related modules.

ElementTree is my choice too. It is simple and easy to use though a bit bare-bones. It has a C 
implementation that is very fast and can cope with very large files (e.g. 25MB). For a broader 
perspective and many examples, check out Uche Ogbuji's articles on xml.com. He has written several 
survey articles of available tools.
http://www.xml.com/pub/au/84

In truth, I haven't found a Python XML library that IMO comes close to dom4j in power and ease of 
use. It's one of the reasons I still use Jython. lxml looks promising but it is not available on 
Windows so I haven't tried it.
http://www.dom4j.org
http://codespeak.net/lxml/

Kent



More information about the Tutor mailing list