Log in or register to vote.

quixml

A simple wrapper around cElementTree

Simple XML tool wrapping cElementTree.

Requires cElementTree, which is not part of std lib before python 2.5.
ElementTree homepage: http://effbot.org/zone/element-index.htm

This module provides a few pythonic conveniances for building simple XML documents.

Published under GPL.

Usage example:

>>> import quixml
>>> el = quixml.Element('root_tag', {'attr': 1}) # create an element
>>> el.append('section1', text='some text') # append a subelement
>>> el.append('section2', {'id': 2, 'var': 'spam'}, 'another text') # another subelement
>>> el.append('section2', {'foo': 'eggs'}, 'how ya doing?') # another subelement
>>> el.get_child(1).get_attr('var') # get second child element attribute 'var'
u'spam'
>>> el.get_child(1 ...

0