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.0.tar.gz
(1.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.0-cp27-none-any.whl
(2.6 kB
view details)
File details
Details for the file xmlx-0.0.0.tar.gz.
File metadata
- Download URL: xmlx-0.0.0.tar.gz
- Upload date:
- Size: 1.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9f69c49389501f506ca07366a64962717e7e5f4e4e01d8cb431b78477c9058d4
|
|
| MD5 |
09fabcc468ee9a05342410fe543daac9
|
|
| BLAKE2b-256 |
d463ee90c3b5bc57df2a9bc21bc17c6526bf0752109c1b54be608d38ef54211d
|
File details
Details for the file xmlx-0.0.0-cp27-none-any.whl.
File metadata
- Download URL: xmlx-0.0.0-cp27-none-any.whl
- Upload date:
- Size: 2.6 kB
- Tags: CPython 2.7
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
18d97458b4d2c2b23a6919b49e4f6f97b9e8b95de2d35b0a52f2ad88aca38484
|
|
| MD5 |
f2f0f178d9cf4bebdf40aa696ea61264
|
|
| BLAKE2b-256 |
897b7b52787ff9fb8ea8139e3dba0af7287a94d7b297c181d8478d3a51fab44c
|