creating XML elements

Bo M. Maryniuck b.maryniuk at forbis.lt
Thu Jul 4 05:11:56 EDT 2002


On Thursday 04 July 2002 10:57, Thomas Guettler wrote:
> If you want to create an xml file it might be easier
> to use print().
>
> string.encode() might help, too

Well, I had same problem, when I needed to create nice XML.
Yes, I tried SAX and DOM. Since method dom.toprettyxml() provides
VERY UGLY text, I wrote very simple my one. Maybe my XML creator (attachment)
helps for somebody of you (note, that code is very ugly yet).

--
Sincerely yours, Bogdan M. Maryniuck

But what can you do with it?  -- ubiquitous cry from Linux-user partner.
(Submitted by Andy Pearce, ajp at hpopd.pwd.hp.com)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xemlgenxml.py
Type: text/x-python
Size: 2892 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/20020704/cf03906a/attachment.py>


More information about the Python-list mailing list