4 ms·
Not sure I understand your API example, but fwiw in Python I use xmltodict [0] specifically the unparse function to convert a dict to XML. I combine this with
by austinjp 4y ago
Not sure I understand your API example, but fwiw in Python I use xmltodict [0] specifically the unparse function to convert a dict to XML. I combine this with ujson for speedy JSON [1] and defusedXML [2] for safety.
[0] https://pypi.org/project/xmltodict/ https://pypi.org/project/xmltodict/
[1] https://pypi.org/project/ujson/ https://pypi.org/project/ujson/
[2] https://pypi.org/project/defusedxml/ https://pypi.org/project/defusedxml/