Python, XML, and databases

Gerhard Häring gh_pythonlist at
Wed Oct 10 15:36:21 CEST 2001

On Wed, Oct 10, 2001 at 08:07:56AM -0500, adina_levin at wrote:
> Is there a Python tool to exchange data between a relational database and
> XML?
> I've looked at, searched the archive of this list and,
> looked in the mysql documentation, no luck yet. Pointers welcome, hopefully
> I've missed something.

I haven't yet seen anything convincing for Python :-( I mean something
like Castor for Java, which is a complete solution for XML <-> DB.

The only link I have is
but I haven't tried that yet. It seems to create XML from SQL queries

You could check out if you can produce what you want with 4Suite (might
be possible out of the box, too). It contains libraries for xml, xslt,
xpointer, xlink, rdf and an object-realational mapper.

mail:   gerhard <at> bigfoot <dot> de       registered Linux user #64239
web:    OpenPGP public key id 86AB43C0
public key fingerprint: DEC1 1D02 5743 1159 CD20  A4B6 7B22 6575 86AB 43C0
reduce(lambda x,y:x+y,map(lambda x:chr(ord(x)^42),tuple('zS^BED\nX_FOY\x0b')))

More information about the Python-list mailing list