Author Adam.Urban
Recipients Adam.Urban, eli.bendersky, serhiy.storchaka
Date 2013-07-02.17:31:38
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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:

ElementTree will output it like this when html is specified as the "method":

Date User Action Args
2013-07-02 17:31:39Adam.Urbansetrecipients: + Adam.Urban, eli.bendersky, serhiy.storchaka
2013-07-02 17:31:39Adam.Urbansetmessageid: <>
2013-07-02 17:31:39Adam.Urbanlinkissue18347 messages
2013-07-02 17:31:38Adam.Urbancreate