I need to select an element base on its tag name. So i used (python and lxml) and did this:
doc.getroot().xpath("//SimpleData")
But it always return [].
When i do this however:
doc.getroot().xpath("//*")
I get a long list of results, one of which is this:
Element {http://www.opengis.net/kml/2.2}SimpleData at 0x7ff548098c88
So I would like to know what am I doing wrong? Why isnt xpath returning the SimpleData elements?
Thanks in advance.