def _write_xml(root, xml_file):
from xml.dom import minidom
#print(ElementTree.dump(root))
dom = minidom.parseString(ElementTree.tostring(root))
output = open(xml_file, 'w')
output.write(dom.toprettyxml(indent=" "))
output.close()
return xml_file
评论列表
文章目录