A simpler XML writer
Project description
XmlElement
A simpler XML writer.
Installation
pip install XmlElement
Test
>>> from XmlElement import XmlElement as X
>>> xml = X.from_string('<test><x/></test>')
>>> xml
XmlElement(test)
Usage
import XmlElement from XmlElement
xml = XmlElement('RootElement', s=[ # root element without attributes
X('Child1', {'name': 'child1'}, [ # sub element with an attribute
X('Child2', t='Example Value') # sub-sub element with text value
])
])
print(xml)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
XmlElement-0.1.0.tar.gz
(2.6 kB
view hashes)
Built Distribution
Close
Hashes for XmlElement-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9dc683693afd0d719890137739539d3d90b73501d314b09df281e6fa27c524ae |
|
MD5 | 893858d35c960ac869b1e86124e61ee7 |
|
BLAKE2b-256 | 7524d3cf80df8a496bcab1a51a24bcd9ea1fdcbd2893868f9636fb7b408f4215 |