0

XML file to be changed

``` ``` loaded with elementree ET.parse -> find-> element.text = change -> tree.write filled without use of namespaces; tree.write(output, encoding=utf-8)->: ``` 0 ```

I loose the xs:element detail?

i have tried with ET.Namespaces, namespaces(xs:"url w3") but than cannot root.find(.//xs:name/, namespaces=namespaces) the right element.

SyntaxError: prefix 'a' not found in prefix map is there a way to see all the existing namespaces in python?

I value -u 2
  • 107
  • 1
  • 4

0 Answers0