Python ElementTree find() not matching within kml file
I'm trying to find an element from a kml file using element trees as follows: from xml.etree.ElementTree import ElementTree tree = ElementTree() tree.parse("history-03-02-2012.kml") p = tree.find(".//name") A sufficient subset of the file to demonstrate the problem follows: <?xml version="1.0" encoding="UTF-8"?> <kml xmlns="http://www.opengis.net/kml/2.2"> <Document> <name>Location history from 03/03/2012 to 03/10/2012</name> </Document> </kml> A "name" element exists; why does the search come back empty? The name element you're trying to match is actually within the KML namespace, but you