Re: Elementtree find problem

2008-04-21 Thread Stefan Behnel
Mike Slinn wrote: > The following short Python program parses a KML file and displays the > names of all Marks and Routes: > > from elementtree.ElementTree import ElementTree > tree = ElementTree(file='test.kml') > kml = tree.getroot() > ns = 'http://earth.google.com/kml/2.1' > for folder in kml.f

Elementtree find problem

2008-04-21 Thread Mike Slinn
The following short Python program parses a KML file and displays the names of all Marks and Routes: from elementtree.ElementTree import ElementTree tree = ElementTree(file='test.kml') kml = tree.getroot() ns = 'http://earth.google.com/kml/2.1' for folder in kml.findall("{%s}Folder/{%s}Folder/{%s

Re: Elementtree find problem

2007-12-11 Thread Larry Bates
[EMAIL PROTECTED] wrote: > I tried the tips I found in other posts but I still get 'none' back: > > import easygui as eg > import xml.etree.ElementTree as ET > import sys > > #kml source is: > # > #http://earth.google.com/kml/2.2";> > # > #Simple placemark > #Attached to the ground. Int

Elementtree find problem

2007-12-11 Thread Willemsjunk
I tried the tips I found in other posts but I still get 'none' back: import easygui as eg import xml.etree.ElementTree as ET import sys #kml source is: # #http://earth.google.com/kml/2.2";> # #Simple placemark #Attached to the ground. Intelligently places itself # at the height of