Andrei Kulakov <andrei....@gmail.com> 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? ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue45336> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com