+ 5
Python: how to serialize JSON into XML?
I have to query an API endpoint to get lots of data objects. The tech stack used in the next steps requires me to convert the objects into XML. I used an intermediary python script for getting the data, so I have the JSON already. How do I create an XML tree from there? Any hints or preexisting python scripts to use as a reference? Thanks in advance...
2 Réponses
+ 2
Dear Asker, here are some helpful links:
https://www.geeksforgeeks.org/JUMP_LINK__&&__python__&&__JUMP_LINK-json-to-xml/
https://stackoverflow.com/questions/8988775/convert-json-to-xml-in-python
https://www.codespeedy.com/how-to-convert-json-to-xml-using-python/
https://www.geeksforgeeks.org/python-xml-to-json/
https://python-forum.io/thread-2367.html
+ 1
read the doc... there is a builtin module called 'xml' wich could be used to parse/build xml strings:
https://docs.python.org/3/library/xml.html