How to generate XML

waldekO osuchw at
Thu Dec 20 14:20:35 EST 2001

Fabrizio <realefab at> wrote in message news:<3c21e330 at>...
> Does anybody know if there are modules to generate XML?
> I know there is SAX, but it is only for parsing, isn't it?
> Thank.
> Fab

Another module not mentined is saxutils and XMLGenerator class
I use it to generate XML from python structures.

>>> import xml.sax.saxutils
>>> from xml.sax import saxutils
>>> gen = saxutils.XMLGenerator()

Check the source for methods


More information about the Python-list mailing list