xmljson icon indicating copy to clipboard operation
xmljson copied to clipboard

How to Convert Back to XML?

Open achapkowski opened this issue 6 years ago • 0 comments

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?

achapkowski avatar Feb 11 '19 14:02 achapkowski