Letter P

python-xmltodict - Makes working with XML feel like you are working with JSON

Website: https://github.com/martinblech/xmltodict
License: MIT
Vendor: 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'

Packages

python-xmltodict-0.9.0-1.el7.noarch [16 KiB] Changelog by Fabian Affolter (2014-10-02):
- Update spec file according guidelines 
- Update to upstream release 0.9.0

Listing created by Repoview-0.6.6-1.el6