[issue45336] xml.etree.ElementTree.write does not support `standalone` option

2022-03-21 Thread Ned Deily
Change by Ned Deily : -- nosy: +eli.bendersky, scoder ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45336] xml.etree.ElementTree.write does not support `standalone` option

2022-03-14 Thread Eric Vergnaud
Eric Vergnaud added the comment: Actually there are 2 distinct issues here: - ValueError: cannot use non-qualified names with default_namespace option - lack of 'standalone' option when writing XML PI -- ___ Python tracker

[issue45336] xml.etree.ElementTree.write does not support `standalone` option

2022-03-14 Thread Eric Vergnaud
Eric Vergnaud added the comment: lxml tostring does not support the default_namespace value so not an option -- ___ Python tracker ___

[issue45336] xml.etree.ElementTree.write does not support `standalone` option

2022-03-14 Thread Eric Vergnaud
Eric Vergnaud added the comment: This is not a feature request, it's a bug fix request, so should be fixed asap. Why is it a bug ? XML spec says that "the default namespace does not apply to attribute names" (see section 6.3), therefore having a simple attribute name when using a default

[issue45336] xml.etree.ElementTree.write does not support `standalone` option

2021-10-19 Thread Andrei Kulakov
Andrei Kulakov added the comment: Ed: I can look into adding it, but not sure when. If you can make the case that minidom and lxml are not suitable workarounds for this, it will be more likely that me or someone else will add this option; but note that as this is a new feature, it will only

[issue45336] xml.etree.ElementTree.write does not support `standalone` option

2021-10-19 Thread Andrei Kulakov
Change by Andrei Kulakov : -- title: xml.tree.ElementTree.write does not support `standalone` option -> xml.etree.ElementTree.write does not support `standalone` option ___ Python tracker