Message192212
import xml.etree.ElementTree as ET
tree = ET.parse("myinput.xml")
tree.write("myoutput.xml", encoding="utf-16le", xml_declaration=False, default_namespace=None, method="html")
If the source XML has a tag like this:
<someTag>someData</someTag>
ElementTree will output it like this when html is specified as the "method":
<someTag>someData</sometag> |
|
Date |
User |
Action |
Args |
2013-07-02 17:31:39 | Adam.Urban | set | recipients:
+ Adam.Urban, eli.bendersky, serhiy.storchaka |
2013-07-02 17:31:39 | Adam.Urban | set | messageid: <1372786299.24.0.986452564327.issue18347@psf.upfronthosting.co.za> |
2013-07-02 17:31:39 | Adam.Urban | link | issue18347 messages |
2013-07-02 17:31:38 | Adam.Urban | create | |
|