Skip to main content

Functions for generating XML/HTML

Project description

xmlist

xmlist is a module for generating XML, which it represents by lists and tuples.

using xmlist

xml = xmlist.serialize(['html',
    ('xmlns', 'http://www.w3.org/1999/xhtml'),
    ['head', ['title', 'Hello, world!']],
    ['body',
        ['h1', 'Hello, world!'],
        ['p', 'xmlist is a module for generating XML']]])

hacking on xmlist

[assuming the setup_requires and test_requires are already installed with pip --user]

virtualenv --python=python2.7 --system-site-packages env27 ;
env27/bin/pip2 install --editable .

testing xmlist

env27/bin/python -B setup.py -q test

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

xmlist-1.0.tar.gz (5.2 kB view hashes)

Uploaded Source

Built Distribution

xmlist-1.0-py2.py3-none-any.whl (8.6 kB view hashes)

Uploaded Python 2 Python 3

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