Newbie XML Output question

kryten21 ethanton at
Mon Sep 4 11:23:47 CEST 2006


I was wondering if someone could help me with a problem I've been
having with mod-python and a javascript application I'm running.  When
I run a GET on the actual XML file from the javascript, I can easily
parse the file.  However, when I use a mod-python handler and run this

LOCAL_FILE = 'htdocs/ethan/info.xml';

def get_request(req):
	if req.method == 'GET':
		req.content_type = "text/xml"
                return apache.OK

The file is sent but the same code that parsed the actual file can't
parse what is sent through this request.  Is there some kind of special
formatting that is required to properly send back XML to a javascript

Any help would be greatly appreciated,


More information about the Python-list mailing list