from xml.etree import ElementTree as ET doc = ET.fromstring(''' 1 2 ''') nsmap = {'': 'http://example.com', 'pre':'http://example.com/prefix'} doc.find('.//a') # finds nothing doc.find('.//a', namespaces=nsmap) # finds nothing doc.find('.//{http://example.com}a') # works, but yuck doc.find('.//pre:b', namespaces=nsmap) # this works, though