[New-bugs-announce] [issue28659] xml.etree.cElementTree.write misses opening tag

Stelios report at bugs.python.org
Thu Nov 10 11:11:15 EST 2016


New submission from Stelios:

import xml.etree.cElementTree as ET

events = ET.Element('Events')
tree = ET.ElementTree(events)
tree.write('test.xml', xml_declaration=True, encoding='UTF-8')

writes to file:
<?xml version='1.0' encoding='UTF-8'?>
<Events />

Where opening tag <Events> is missing

Python version: Python 3.5.2

----------
components: XML
messages: 280515
nosy: chefarov
priority: normal
severity: normal
status: open
title: xml.etree.cElementTree.write misses opening tag
type: behavior
versions: Python 3.5

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue28659>
_______________________________________


More information about the New-bugs-announce mailing list