python mysql and xml

Piet pit.grinja at gmx.de
Tue Sep 7 05:59:36 EDT 2004


mailtome200420032002 at yahoo.com (john) wrote in message news:<4c900ea0.0409062109.391d04de at posting.google.com>...
> Hi
> I have my data stored in mysql database and now I want to store them as XML.
> Are there any tools or library available for this?
> Thanks.
Hi there,
that´s a feature already built in mySQL (AFAIK).
However, since both the structure of a mySQL database and of an XML
file can be quite variable, when you want to have your data in a
specific XML dialect I suggest that you write your own mySQL->XML
conversion tool. Should be possible in less than 100 lines.
BW
Piet



More information about the Python-list mailing list