Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

et.dump export file to xml write method

import xml.etree.ElementTree as ET

tree = ET.ElementTree("tree")

document = ET.Element("outer")
node1 = ET.SubElement(document, "inner")
node1.text = "text"

tree._setroot(document)
tree.write("./output.xml", encoding = "UTF-8", xml_declaration = True)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #export #file #xml #write #method
ADD COMMENT
Topic
Name
1+4 =