This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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 <1372786299.24.0.986452564327.issue18347@psf.upfronthosting.co.za>
In-reply-to
Content
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>
History
Date User Action Args
2013-07-02 17:31:39Adam.Urbansetrecipients: + Adam.Urban, eli.bendersky, serhiy.storchaka
2013-07-02 17:31:39Adam.Urbansetmessageid: <1372786299.24.0.986452564327.issue18347@psf.upfronthosting.co.za>
2013-07-02 17:31:39Adam.Urbanlinkissue18347 messages
2013-07-02 17:31:38Adam.Urbancreate