Suggestions on Python XML.
guettli at thomas-guettler.de
Mon Jul 26 17:34:55 CEST 2004
Am Fri, 23 Jul 2004 22:47:37 -0700 schrieb June Moore:
> I would like to write a script in Python that takes XML request, query
> MySQL database and sends XML requests back.
> Can anyone here suggest any relevant links / tutorials on the web that
> are related to allow me to do this?
Try to break your problem into several smaller ones.
1. Parse the request (not http, just a normal file)
I suggest sax: import xml.sax
2. Learn how to handle a HTTP-Request
(module cgi and cgitb)
3. Try to make queries with mysql
4. Create valid XML
You can use fd.write() or a library.
More information about the Python-list