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.5.tar.gz
(3.2 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
File details
Details for the file xmlx-0.0.5.tar.gz.
File metadata
- Download URL: xmlx-0.0.5.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dd07965afa98935416a8d1711543bc52aa41467ed1c1332e8ec7bda36eb30166
|
|
| MD5 |
91bb966666f5f1a8d6dc8e5cd168001a
|
|
| BLAKE2b-256 |
e020051868fcffe4eb7b65bcd42ac107c4162176d4de1eb28e8d7e4d5dc66147
|
File details
Details for the file xmlx-0.0.5-py2.py3-none-any.whl.
File metadata
- Download URL: xmlx-0.0.5-py2.py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8206709a488773537816911e8ddfe91af858d8f25cf04e5569939741fed03bde
|
|
| MD5 |
caf8d6401a0b8cb4814f96dda421f24b
|
|
| BLAKE2b-256 |
69a2c07081d08022738e370cfa4ab1d919a404b188d30ae89e62c8903222cd64
|