Is there a way to ignore the XML namespace in tage names in elementtree.ElementTree
?
I try to print all technicalContact
tags:
for item in root.getiterator(tag='{http://www.example.com}technicalContact'):
print item.tag, item.text
And I get something like:
{http://www.example.com}technicalContact [email protected]
But what I really want is:
technicalContact [email protected]
Is there a way to display only the suffix (sans xmlns), or better - iterate over the elements without explicitly stating xmlns?