dict to xml code example
Example 1: python convert dict to xml
from dicttoxml import dicttoxml
array = [
{
'time': {"hour":"1", "minute":"30","seconds": "40"}
},
{
'place': {"street":"40 something", "zip": "00000"}
}
]
xml = dicttoxml(array, custom_root='test', attr_type=False)
Example 2: dicttoxml python?
>>> import dicttoxml
>>> xml = dicttoxml.dicttoxml(some_dict)