Howto create this XML string?

Fredrik Lundh fredrik at
Thu Jan 19 17:25:12 CET 2006

"Sbaush" wrote:

> I've this XML:

> How can i write this in a Python String? I would like use a
> xml.domimplementation and not a banal print...print...
> I can't do it... Is there anyone that can explain me what is the way?

and use dom.toxml() to get a string (or print to a StringIO instance).


More information about the Python-list mailing list