How do you do this in wsgi :) def handler(req): text = req.read() req.content_type = 'text/xml' req.write(text) return apache.OK