[Tutor] parsing XML

Eric Pavey warpcat at gmail.com
Tue Nov 10 05:15:50 CET 2009


On Mon, Nov 9, 2009 at 7:48 PM, Christopher Spears <cspears2002 at yahoo.com>wrote:

> Hi!
>
> I need to parse several XML documents into a Python dictionary.  Is there a
> module that would be particularly good for this?  I heard beginners should
> start with ElementTree.  However, SAX seems to make a little more sense to
> me.  Any suggestions?
>

I'd recommend ElementTree.  I started out with minidom and wanted to rip my
face off.  Ok, exaggerating, but ElementTree made a lot more sense.
2c
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20091109/da0d9c8b/attachment-0001.htm>


More information about the Tutor mailing list