How to generate XML

waldekO osuchw at ecn.ab.ca
Thu Dec 20 20:20:35 CET 2001


Fabrizio <realefab at tiscalinet.it> wrote in message news:<3c21e330 at news.opennet.it>...
> 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

waldekO



More information about the Python-list mailing list