Simple elementtree question

IamIan iansan at gmail.com
Fri Aug 31 00:16:30 CEST 2007


Thank you very much! That did it.

In the source XML <item> tags have rdf:about attributes with the link
to the story, and it was here I planned on grabbing the link and
matching it up with the <title> child text. After seeing the output of
elmenttree's getiterator() though, it now looks like each item, title,
description, and link is a separate element...

I could use a dictionary or lists to match the first title to the
first link, but is there a more elegant way in elementtree (or
otherwise) to do this?

Thanks again,

Ian




More information about the Python-list mailing list