Name : python-xmltodict
| |
Version : 0.9.0
| Vendor : CentOS
|
Release : 1.el7
| Date : 2016-03-02 21:57:16
|
Group : Development/Libraries
| Source RPM : python-xmltodict-0.9.0-1.el7.src.rpm
|
Size : 0.03 MB
| |
Packager : CBS < cbs_centos_org>
| |
Summary : Makes working with XML feel like you are working with JSON
|
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\'][\'AATThas\'] u\'an attribute\' >>> doc[\'mydocument\'][\'and\'][\'many\'] [u\'elements\', u\'more elements\'] >>> doc[\'mydocument\'][\'plus\'][\'AATTa\'] u\'complex\' >>> doc[\'mydocument\'][\'plus\'][\'#text\'] u\'element as well\'
|
RPM found in directory: /vol/rzm7/linux-centos-vault/7.9.2009/infra/x86_64/infra-common/Packages/p |