Simple interface to minidom for creating XML files

2010-09-26 Thread Raphaël Plasson
Hello, I want to create some XML files, following a simple template. For that purpose, I created a simple interface to minidom. This is simple code, but as I spend a little time for understanding how minidom was working, I thought that this may be useful for someone (not that minidom is complex, b

Re: Creating xml

2009-07-23 Thread Gerhard Häring
Greg Lindstrom wrote: > It's been a while since I've played with XML using Python but I've been > asked to create XML using data from our postgres database. Currently we > are generating XML directly from the database using a set of stored > procedures but it is too slow (yes, I have numbers). I

Re: Creating xml

2009-07-23 Thread Chris Rebert
On Thu, Jul 23, 2009 at 12:30 PM, Greg Lindstrom wrote: > How about if I need/want to parse or process an XML file? xml.etree.ElementTree in the standard library: http://docs.python.org/library/xml.etree.elementtree.html Cheers, Chris -- http://blog.rebertia.com -- http://mail.python.org/mailm

Creating xml

2009-07-23 Thread Greg Lindstrom
It's been a while since I've played with XML using Python but I've been asked to create XML using data from our postgres database. Currently we are generating XML directly from the database using a set of stored procedures but it is too slow (yes, I have numbers). I have been asked to create a ro