[issue45336] Issue with xml.tree.ElementTree.write

2021-10-19 Thread Andrei Kulakov
Change by Andrei Kulakov : -- components: +Library (Lib) -Documentation nosy: +kj ___ Python tracker ___ ___ Python-bugs-list

[issue45336] Issue with xml.tree.ElementTree.write

2021-10-19 Thread Andrei Kulakov
Andrei Kulakov added the comment: Ed: it seems ElementTree.write does not support `standalone` option, but both minidom (https://docs.python.org/3/library/xml.dom.minidom.html) and lxml (https://lxml.de/) support it. Are either of those suitable for your usecase? --

[issue45336] Issue with xml.tree.ElementTree.write

2021-10-19 Thread ed wolf
ed wolf added the comment: Hi Andrew I removed the quotes and still see an issue with the standalone not being added to the xml declaration. I set the command as follows rte_ecu_tree.write(rtexmlFile, encoding="UTF-8", xml_declaration=True, default_namespace=None,

[issue45336] Issue with xml.tree.ElementTree.write

2021-10-18 Thread Andrei Kulakov
Change by Andrei Kulakov : -- type: performance -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45336] Issue with xml.tree.ElementTree.write

2021-10-18 Thread Andrei Kulakov
Andrei Kulakov added the comment: Ed: something looks a bit odd with the call to `write()` that you used: > rte_ecu_tree.write(rtexmlFile, encoding="UTF-8", xml_declaration="True", > default_namespace="None" method="xml",short_empty_elements="True" ) Note that default val for

[issue45336] Issue with xml.tree.ElementTree.write

2021-09-30 Thread ed wolf
New submission from ed wolf : When executing the following command after modifiy an xml file an error is prodcued. import xml.etree.ElementTree as ET rtexmlFile = 'Fox_CM3550A_SWP1_Rte_ecuc.arxml' rte_ecu_tree = ET.parse(rtexmlFile) root = rte_ecu_tree.getroot() rte_ecu_tree.write(rtexmlFile,