473,320 Members | 1,861 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Suggestions on Python XML.

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.
Jul 18 '05 #1
2 1291
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
Jul 18 '05 #2
On 23 Jul 2004 22:47:37 -0700, June Moore <ju******@yahoo.com.au> wrote:
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)

--
John Lenton (jl*****@gmail.com) -- Random fortune:
bash: fortune: command not found
Jul 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Ray | last post by:
Hello there, I've been programming in Java for about 8 years now, but lately I've been hearing a lot about Python and I'm really interested in learning more about it. I've read the tutorial, and...
1
by: avinashc | last post by:
If anyone is interested in a /etc/hosts.deny automatic update script (Unix only) based on sshd/vsftpd attacks, here's a python script: http://www.aczoom.com/tools/blockhosts/ This is a beta...
8
by: John Salerno | last post by:
Hi all. I'm fairly new to programming and I thought I'd like to try Python. I'm trying to decide between these two books: Learning Python (O'Reilly) Beginning Python: From Novice to Professional...
62
by: A.M. Kuchling | last post by:
Here are some thoughts on reorganizing Python's documentation, with one big suggestion. The tutorial seems to be in pretty good shape because Raymond Hettinger has been keeping it up to date. ...
1
by: Simmons, Stephen | last post by:
Hi, I've come across a bug in CSV where the csv.reader() raises an exception if the input line contains '\r'. Example code and output below shows a test case where csv.reader() cannot read an...
45
by: Gregory Petrosyan | last post by:
1) From 2.4.2 documentation: There are two new valid (semantic) forms for the raise statement: raise Class, instance raise instance 2) In python: >>> raise NameError Traceback (most recent...
2
by: vasudevram | last post by:
Hi all, I had created this open source project - xtopdf - http://sourceforge.net/projects/xtopdf - some time ago. It's a toolkit to help with conversion of other file formats to PDF. The...
26
by: Frank Samuelson | last post by:
I love Python, and it is one of my 2 favorite languages. I would suggest that Python steal some aspects of the S language. ------------------------------------------------------- 1. Currently...
0
Beshr
by: Beshr | last post by:
Hey again! I'm working on a new IDE for Python, i'm using .NET for it, i'm combining C++ with Visual Basic to get the most of it. Anyway, I'm not a Python PRO. So i'm gonna be needing some...
6
by: miller.paul.w | last post by:
I'm considering writing a little interpreter for a python-like language and I'm looking for name suggestions. :-) Basically, I don't want to change a whole lot about Python. In fact, I see...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.