Answers for "python convert dict to xml"

0

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)
Posted by: Guest on November-04-2020

Code answers related to "python convert dict to xml"

Python Answers by Framework

Browse Popular Code Answers by Language