Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to Convert Back to XML? #39

Open
achapkowski opened this issue Feb 11, 2019 · 0 comments
Open

How to Convert Back to XML? #39

achapkowski opened this issue Feb 11, 2019 · 0 comments

Comments

@achapkowski
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant