Description
format_as_xml is great and handy. However it has limitations that item_tag applies to all the nested levels.
Would you consider exposing low level APIs to convert dict/list to ElementTree.Element? Maybe provide 3 utilities:
- dict/list to xml str (format_as_xml)
- dict/list to Element
- Element to str
With such an approach, developers can control element tree themselves.
References
No response