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.7.tar.gz
(2.5 kB
view hashes)
Built Distribution
Close
Hashes for XmlElement-0.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cdcac4465a2582533aa178e57bd9b52db8a9413fb84c05f1faacd2d22102b619 |
|
MD5 | 296b0f61be1087ca2d8301fbd964426a |
|
BLAKE2b-256 | c95b24147f388cfe1ade0971ea805269237142d5693ad8f63dc860cae2960064 |