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 chefarov
Recipients chefarov
Date 2016-11-10.16:11:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1478794275.76.0.0715708391082.issue28659@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2016-11-10 16:11:15chefarovsetrecipients: + chefarov
2016-11-10 16:11:15chefarovsetmessageid: <1478794275.76.0.0715708391082.issue28659@psf.upfronthosting.co.za>
2016-11-10 16:11:15chefarovlinkissue28659 messages
2016-11-10 16:11:15chefarovcreate