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.

Source Distributions

xmldict_translate-0.1.3.tar.gz (2.3 kB view hashes)

Uploaded Source

xmldict_translate-0.1.2.tar.gz (2.3 kB view hashes)

Uploaded Source

xmldict_translate-0.1.1.tar.gz (2.2 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page