Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for TBGXMLUtils, version 0.1.2
Filename, size File type Python version Upload date Hashes
Filename, size TBGXMLUtils-0.1.2.tar.gz (2.5 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page