Creating a simple XML file using python

前端 未结 6 972
野性不改
野性不改 2020-11-22 14:55

What are my options if I want to create a simple XML file in python? (library wise)

The xml I want looks like:


 
     

        
6条回答
  •  无人共我
    2020-11-22 15:39

    For the simplest choice, I'd go with minidom: http://docs.python.org/library/xml.dom.minidom.html . It is built in to the python standard library and is straightforward to use in simple cases.

    Here's a pretty easy to follow tutorial: http://www.boddie.org.uk/python/XML_intro.html

提交回复
热议问题