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
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
[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
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