Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 437 Bytes

README.md

File metadata and controls

24 lines (16 loc) · 437 Bytes

Synopsis

The utility library for Python to convert between xml and dict objects

Usage

test_string = 'CHILD2CHILD11'

print(xml2dict(test_string))

test_obj = { 'parent': { 'child1': { 'child11': 'CHILD11' }, 'child2': 'CHILD2' } }

print(dict2xml(test_obj))

License

MIT License. Further details in LICENSE.txt