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.

Source Distribution

TBGXMLUtils-0.1.2.tar.gz (2.5 kB view details)

Uploaded Source

File details

Details for the file TBGXMLUtils-0.1.2.tar.gz.

File metadata

  • Download URL: TBGXMLUtils-0.1.2.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for TBGXMLUtils-0.1.2.tar.gz
Algorithm Hash digest
SHA256 82dcae79da84e0fef5d76238bcefbe47c06e4abe9e12e1e4468440172fc135cd
MD5 71cc02acc7abb25d6e6f45a4069ee559
BLAKE2b-256 45f3d11c932d67b5c242109781b130fc632d1db38bc510773575026215be2807

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page