Editing values in a xml file with Python

后端 未结 5 1313
执笔经年
执笔经年 2021-01-17 03:08

Hey. I want to have a config.xml file for settings in a Python web app.

I made car.xml manually. It looks like this:


    

        
5条回答
  •  时光取名叫无心
    2021-01-17 03:33

    Use beautifulstonesoup. Here is the section on modifying xml:

    http://www.crummy.com/software/BeautifulSoup/documentation.html#Modifying%20the%20Parse%20Tree

提交回复
热议问题