Skip to content

Expose low level APIs of format_as_xml #2905

@yf-yang

Description

@yf-yang

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:

  1. dict/list to xml str (format_as_xml)
  2. dict/list to Element
  3. Element to str

With such an approach, developers can control element tree themselves.

References

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions