Easy XML utility.
Project description
This package makes it easy to construct xml files.
Examples
e = add(‘TBGRoot’)
i = add(‘LevelOne’, e, attrs={‘type’:’default’, ‘class’:’toplevel’}) add(‘ID’, i, txt=’1234’) add(‘FirstName’, i, text=’Jack’) add(‘LastName’, i, text=’Smith’)
i = add(‘LevelTwo’, e, attrs={‘type’:’default’, ‘class’:’secondlevel’}) add(‘ID’, i, txt=’12345’) add(‘Address’, i, text=’1 Main Street’) add(‘City’, i, text=’New York’)
print pretty(xml=etree2xml(e))
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
TBGXMLUtils-0.1.1.tar.gz
(2.5 kB
view details)
File details
Details for the file TBGXMLUtils-0.1.1.tar.gz
.
File metadata
- Download URL: TBGXMLUtils-0.1.1.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 55d3ad240cfe130db016daf5b71b2c1b9b551e9bd726ebc17f69f945965888cf |
|
MD5 | eca9fd32af5976f533bdd68bd6bc297c |
|
BLAKE2b-256 | a6142761ed69fabcea1009a7b40ae2ef9e2444df749d31e6bec92fe46620331d |