Re: XML ElementTree Parse.

2006-10-12 Thread marc . wyburn
Thanks Fredrik, thats got me started but just incase anyone looks there is a slight mistype in your code... or you could do something like > > for dir_elem in tree.findall("dirob"): > for file_elem in dirob.findall("fileob"): > print file_elem.findtext("filesize") > > to l

Re: XML ElementTree Parse.

2006-10-12 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: > I'm playing with XML and elementtree and am missing something but I'm > not sure what...? I've create an XML file with Elementtree with a root > of backup.xml. Attached to the root is a dirob and the dirobj has a > fileobj. fileobj has filename and filesize tags. I ca