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.1.tar.gz
(2.7 kB
view hashes)
Built Distribution
Close
Hashes for XmlElement-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 50223f443d6bcf937dfa64944fc47ce25d74fd18f6a009e329ab38b768849d2e |
|
MD5 | b1eddc3c0910d4e5ac996a730b54efea |
|
BLAKE2b-256 | 921c83cb6409300b3675bb4f2ddb96ad574963b6b7a7f296330a15c568e06224 |