Search and replace multiple lines in xml/text files using python

后端 未结 3 872
萌比男神i
萌比男神i 2020-12-18 08:31

---Update 3: I have got the script to update the required data into the xml files completed but the following code is being dropped from the written file. Why is this? how c

3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-18 08:58

    I might be stating the obvious here, but did you consider using a DOM tree to parse and manipulate your XML?

提交回复
热议问题