Siblings with similar names are grouped into a list.
Children can be accessed with parent.child, attributes with element['attribute'].
You can call the parse() method with a filename, an URL or an XML string.
Substitutes -, . and : with _<foobar><foo-bar/></foobar> can be accessed with foobar.foo_bar, <foo.bar.baz/> can be accessed with foo_bar_baz and <foo:bar><foo:baz/></foo:bar> can be accessed with foo_bar.foo_baz
Works with Python 3.7 - 3.10
Installation
With pip:
pip install untangle
With conda:
conda install -c conda-forge untangle
Conda feedstock maintained by @htenkanen. Issues and questions about conda-forge packaging / installation can be done here.