I am parsing an XML document containing 3 different namespaces, where 2 of them do not have a prefix. This XML-doc looks like:
<element xmlns="namespace1">
<child></child>
<child xmlns="namespace2" xlmns:a="namespace3>
<a:childs></childs>
</element>
So basically, namespace1 is used for the first two rows, namespace2 for the third row and namespace3 for the fourth row. However, when I register the namespaces like
ET.register_namespace('', "namespace1")
ET.register_namespace('', "namespace2")
ET.register_namespace('a', "namespace3")
my output document eventually puts "ns1:" in front of everything regarding namespace2. If I change the prefix of one of those to for example 'b' it obviously puts this 'b' in front of the regarding element names, which I am trying to avoid. Does anyone know how to solve this? Thanks in advance.