How to generate XML
osuchw at ecn.ab.ca
Thu Dec 20 14:20:35 EST 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?
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