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.9.tar.gz
(2.5 kB
view hashes)
Built Distribution
Close
Hashes for XmlElement-0.0.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 43584cd822119cbec8aa7c683d5f3c9b65be68b3a4edc16f229b507a072827ec |
|
MD5 | c420294b2a259b13425550cda1609ebd |
|
BLAKE2b-256 | ad96c25feeae8bb12bbfb2aee3b21953ecad74d4a7b087ae63ce1a4995bd3f83 |