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
If you try to print the root, you will see something like this: http://www.host.domain/path/to/your/xml/namespace}RootTag' at 0x0000000000558DB8>
So, to avoid the ns0 prefix, you have to change the default namespace before parsing the XML data as below:
ET.register_namespace('', "http://www.host.domain/path/to/your/xml/namespace")