Skip to content
This repository was archived by the owner on Jan 8, 2026. It is now read-only.
This repository was archived by the owner on Jan 8, 2026. It is now read-only.

How to Convert Back to XML? #39

@achapkowski

Description

@achapkowski

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions