[XML-SIG] Re: Generating XML from scratch

Fredrik Lundh fredrik at pythonware.com
Wed Feb 9 20:59:45 CET 2005


John W. Shipman wrote:

> I want to capture data from a GUI or other source and store
> it as an XML document.
>
> I've been doing this for a while, using the minidom in 2.2, but
> apparently all the (admittedly undocumented) features I was using
> went away in 2.3, and the new methods are a lot uglier.  This
> means that when we upgrade to 2.3 or 2.4 locally, I have to go
> back and rewrite a lot of existing, working scripts.

> Comments?  Is there something out there I don't know about?

rule 1: don't use DOM, if you can avoid it.
rule 2: you can always avoid it.

some alternatives:

    http://www.xml.com/pub/a/2003/04/09/py-xml.html
    http://www.xml.com/pub/a/2003/10/15/py-xml.html
    http://effbot.org/zone/xml-writer.htm
    http://effbot.org/zone/element-index.htm

etc.

</F> 





More information about the XML-SIG mailing list