阅读背景:

如何在python中创建xml文档

来源:互联网 

Here is my sample code:

这是我的示例代码:

from xml.dom.minidom import *
def make_xml():
    doc = Document()
    node = doc.createElement('foo')
    node.innerText = 'bar'
    doc.appendChild(node)
    return doc
if __name__ == '__main__':
    make_xml().writexml(sys.stdout)
from xml.



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: