SQL recordset -> XML

Andy Todd andy47 at halfcooked.com
Tue Oct 28 12:45:16 EST 2003


Richard Shea wrote:
> Hi - Not sure if this is a really stupid question or not ... so I
> thought I'd ask it anyway ;-)
> 
> I want to take data from a SQL generated recordset and represent it as
> XML.
> 
> I can think of *very* straightforward ways (as I'm sure all you can)
> to do that (please excuse rough/weird pseudo code) ...
> 
[snip]

You may also want to check out the Effbot's ElementTree as well 
(http://effbot.org/zone/element-index.htm). It has a component called 
the 'Simple XML Writer' which may fit your needs.

Regards,
Andy
-- 
--------------------------------------------------------------------------------
 From the desk of Andrew J Todd esq - http://www.halfcooked.com/







More information about the Python-list mailing list