Suggestions on Python XML.

J

June Moore

Hi,
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?

Thanks,
JM.
 
J

John Lenton

Hi,
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?

are you sure you aren't reinventing xmlrpc? (xmlrpclib is part of the
standard library)
 
T

Thomas Guettler

Am Fri, 23 Jul 2004 22:47:37 -0700 schrieb June Moore:
Hi,
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?

Hi,

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.

Good luck,
Thomas
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top