Source

web2itter / views / generic.xml

{{
###
# response._vars contains the dictionary returned by thecontroller action
###
try:
   from gluon.serializers import xml
   response.write(xml(response._vars),escape=False)
   response.headers['Content-Type']='text/xml'
except:
   raise HTTP(405,'no xml')
}}