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.6.tar.gz
(2.5 kB
view hashes)
Built Distribution
Close
Hashes for XmlElement-0.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c467542f15508351179696dcbe375f60a968732b9956e409535356a7a887ad5e |
|
MD5 | 32ff1f1744cd85c85c83abc3a613fa6c |
|
BLAKE2b-256 | d4f033a51b7930b49d71e01e2df4c8e5091b97930e7a532850a9b62e57f7c27d |