edit xml file without fixing format using lxml etree

前端 未结 0 1852
耶瑟儿~
耶瑟儿~ 2021-02-20 05:44

While editing xml file in python using lxml it seems the etree.write() operation fixes the formatting of the file.

Code:

def update_file(xmlfile, xpath, da         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题