[issue31256] xml.etree.ElementTree: add support for doctype in tostring method

2021-08-15 Thread Danya Sucharik
Danya Sucharik added the comment: May I aks, how it to add a doctype now? -- nosy: +sucharik versions: +Python 3.8 -Python 3.5 ___ Python tracker ___

[issue31256] xml.etree.ElementTree: add support for doctype in tostring method

2020-10-01 Thread Stefan Behnel
Stefan Behnel added the comment: Yes, it fixed already. Thanks! -- nosy: +scoder resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue31256] xml.etree.ElementTree: add support for doctype in tostring method

2020-09-30 Thread Irit Katriel
Irit Katriel added the comment: It looks like PR 12225 resolved this issue. Can this be closed then? -- nosy: +iritkatriel ___ Python tracker ___

[issue31256] xml.etree.ElementTree: add support for doctype in tostring method

2019-03-08 Thread Bernt Røskar Brenna
Bernt Røskar Brenna added the comment: See also: https://bugs.python.org/issue36227 PR: https://github.com/python/cpython/pull/12225 -- nosy: +Bernt.Røskar.Brenna ___ Python tracker

[issue31256] xml.etree.ElementTree: add support for doctype in tostring method

2019-03-08 Thread Bernt Røskar Brenna
Change by Bernt Røskar Brenna : -- keywords: +patch pull_requests: +12225 stage: -> patch review ___ Python tracker ___ ___

[issue31256] xml.etree.ElementTree: add support for doctype in tostring method

2017-08-22 Thread bastik
New submission from bastik: When trying to generate an XML file with 'xml.etree.ElementTree', there is no way to specify a doctype (example below). The 'xml.etree.ElementTree.ElementTree.write' method has a 'xml_declaration' flag, which can be used as workaround, but there is no such flag for