Howto create this XML string?

Fredrik Lundh fredrik at pythonware.com
Thu Jan 19 11:25:12 EST 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?

http://www.boddie.org.uk/python/XML_intro.html

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

</F>






More information about the Python-list mailing list