creating XML elements

Thomas Guettler zopestoller at thomas-guettler.de
Thu Jul 4 04:57:54 EDT 2002


so very tired wrote:

> Hi,
> I've been using python for parsing XML, but I need to now create
> and add elements with subelements, attributes and text. How do I do this
> using the DOM libraries assuming I just have an XML document with a root
> node?


If you want to create an xml file it might be easier
to use print().

string.encode() might help, too

  thomas







More information about the Python-list mailing list