- Name: python-xmltodict
- Version: 0.4.2
- Release: 1.fc17
- Epoch:
- Group: Development/Libraries
- License: MIT
- Url: http://pypi.python.org/pypi/xmltodict
- Summary: Makes working with XML feel like you are working with JSON
- Architecture: noarch
- Size: 10006
- Distribution: Fedora Project
- Vendor: Fedora Project
- Packager: Fedora Project
Description:
xmltodict is a Python module that makes working with XML feel like you are
working with JSON. It's very fast (Expat-based) and has a streaming mode
with a small memory footprint, suitable for big XML dumps like Discogs or
Wikipedia.
>>> doc = xmltodict.parse("""
... <mydocument has="an attribute">
... <and>
... <many>elements</many>
... <many>more elements</many>
... </and>
... <plus a="complex">
... element as well
... </plus>
... </mydocument>
... """)
>>>
>>> doc['mydocument']['@has']
u'an attribute'
>>> doc['mydocument']['and']['many']
[u'elements', u'more elements']
>>> doc['mydocument']['plus']['@a']
u'complex'
>>> doc['mydocument']['plus']['#text']
u'element as well'
- BuildArch:
- ExcludeArch:
- ExclusiveArch:
- Cookie: buildvm-35.phx2.fedoraproject.org 1357572449
- Buildhost: buildvm-35.phx2.fedoraproject.org