xmljson
xmljson copied to clipboard
How to Convert Back to XML?
Sorry if I missed this, but how do I convert my json back to XML?
from xmljson import BadgerFish # import the class
bf = BadgerFish(dict_type=dict) # pick dict class
data = bf.data(fromstring(xml_string))
print(data)
This prints JSON.
Let's say I modify the JSON and want to dump it back to XML. Can I do that?