Skip to main content

Convert between "xml" and "dict".

Project description

Utils for converting strings between "xml" and "dict" formats.

This package contains functions:
xml2dict(xml-string) -> dictionary
dict2xml(dictionary) -> xml-string

Examples:
>>>xmldict_translate.dict2xml(dict(a=[dict(b=[{'_value_': 'something'}], _attrs_={'y': 10})]))
<?xml version="1.0" encoding="UTF-8"?>
<a y="10">
<b>
something
</b>
</a>

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for xmldict_translate, version 0.1
Filename, size File type Python version Upload date Hashes
Filename, size xmldict_translate-0.1.1.tar.gz (2.2 kB) File type Source Python version None Upload date Hashes View
Filename, size xmldict_translate-0.1.2.tar.gz (2.3 kB) File type Source Python version None Upload date Hashes View
Filename, size xmldict_translate-0.1.3.tar.gz (2.3 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page