A simple and compact XML parser.
This project has been archived.
The maintainers of this project have marked this project as archived. No new releases are expected.
Project description
XMLX - a simple and compact XML parser.
XMLX = XML eXtras
To initialize an element object from a string:
``>>> xmlx.Element('<html>hello!</html>')``
``<html>..</html at 0x...>``
If you prefer dictionaries, simply use ``xmlx.elemdict(text)``:
``>>> xmlx.elemdict('<html>hello!</html>')``
``{'?':{},'@':'hello!','*':'<html>hello!</html>'}``
``?`` is the element's attributes, ``@`` is its content (JS innerHTML), and ``*$
See help(xmlx) for further documentation.
XMLX = XML eXtras
To initialize an element object from a string:
``>>> xmlx.Element('<html>hello!</html>')``
``<html>..</html at 0x...>``
If you prefer dictionaries, simply use ``xmlx.elemdict(text)``:
``>>> xmlx.elemdict('<html>hello!</html>')``
``{'?':{},'@':'hello!','*':'<html>hello!</html>'}``
``?`` is the element's attributes, ``@`` is its content (JS innerHTML), and ``*$
See help(xmlx) for further documentation.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
xmlx-0.0.8.tar.gz
(3.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
xmlx-0.0.8-py2-none-any.whl
(4.7 kB
view details)
File details
Details for the file xmlx-0.0.8.tar.gz.
File metadata
- Download URL: xmlx-0.0.8.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2f60095e79af2050a79b257d9b50e1f395b4405bfccff3632cc68f3c95b8e0ca
|
|
| MD5 |
15cd9e92ec346f12ba7dd49de2f86863
|
|
| BLAKE2b-256 |
31b0463659dd4e92b8880970121ffb60e51447cc1757f46d2bf5edcb3e15d9fe
|
File details
Details for the file xmlx-0.0.8-py2-none-any.whl.
File metadata
- Download URL: xmlx-0.0.8-py2-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dde41426bd23325b62b5836d1111d43b506e8d78c3bb19f6fa74676bfdbf231f
|
|
| MD5 |
03219920423c692420f3d63cd2986b63
|
|
| BLAKE2b-256 |
5f95c7f65dbea0b3b0d7436bd7732280facc446b34f62eb37ecc3976b0cf0eae
|