If someone comes across this posting with the same problem, the best answer seems to be: avoid Pythons xml.etree.ElementTree and use this library instead: http://lxml.de/ It works like expected and supports xpath much better.