xmltodict

1.0.4 · active · verified Sat Mar 28

xmltodict makes working with XML feel like you are working with JSON. The current version is 1.0.4, with regular updates and bug fixes.

Warnings

Install

Imports

Quickstart

Quickly parse XML to a Python dictionary.

import xmltodict

xml_str = '<foo><bar value="1">test</bar></foo>'
dict_obj = xmltodict.parse(xml_str)
print(dict_obj)

view raw JSON →