Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #convert #dict #xml
ADD COMMENT
Topic
Name
2+5 =