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.0.11.tar.gz
(2.6 kB
view hashes)
Built Distribution
Close
Hashes for XmlElement-0.0.11-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e0df41d175c203b574258b7c49fa4455905426d7a9fc129a031c9f031afe3cd |
|
MD5 | 092d2b682801621e1d5ba166eaeaa8cd |
|
BLAKE2b-256 | 50fefc4cdd17a61be80a8efcfd5b54080e08ba1e1a6989afcb9b0c46ddaa9e38 |