How to edit an XML file in Python?
问题 I have a resx file that uses XML with a bunch of data that looks like this: <data name="key_first" xml:space="preserve"> <value>Text 1</value> </data> <data name="key_second" xml:space="preserve"> <value>Text 2</value> </data> <data name="key_third" xml:space="preserve"> <value>Text 3</value> </data> where the name values all share a word (eg: "key"). What I wanted to do in Python was take this 'data' name value ("key+anything that follows") and add it to the 'value' text, and then save the