Files
Phoenix/docs/sphinx/rest_substitutions/snippets/python/converted/wx.xml.XmlDocument.2.py
2016-05-18 16:38:18 -07:00

7 lines
259 B
Python

doc = wx.xml.XmlDocument()
doc.Load("myfile.xml", "UTF-8", wx.xml.XMLDOC_KEEP_WHITESPACE_NODES)
# myfile2.xml will be identical to myfile.xml saving it self way:
doc.Save("myfile2.xml", wx.xml.XML_NO_INDENTATION)