New submission from Adam Urban:

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>

----------
components: XML
messages: 192212
nosy: Adam.Urban, eli.bendersky, serhiy.storchaka
priority: normal
severity: normal
status: open
title: ElementTree corrupts cAse of closing tags when html method is specified
type: behavior
versions: Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.3, Python 
3.4, Python 3.5

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue18347>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to