I\'m trying to develop simple Python (3.2) code to read XML files, do some corrections and store them back. However, during the storage step ElementTree adds this n
It seems that you have to declare your namespace, meaning that you need to change the first line of your xml from:
to something like:
Once did that you will no longer get ParseError: for unbound prefix: ..., and:
ParseError: for unbound prefix: ...
elem.tag = elem.tag[(len('{uri:}'):]
will remove the namespace.