Why does xml package modify my xml file in Python3?
问题 I use the xml library in Python3.5 for reading and writing an xml-file. I don\'t modify the file. Just open and write. But the library modifes the file. Why is it modified? How can I prevent this? e.g. I just want to replace specific tag or it\'s value in a quite complex xml-file without loosing any other informations. This is the example file <?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?> <movie> <title>Der Eisbär</title> <ids> <entry> <key>tmdb</key> <value xsi:type=\"xs:int\