first one. def mycontroller(): xml="<hello>World</hello>" response.headers['Content-Type']='text/xml' return xml
i ll parse the xml data at client side. On Fri, May 29, 2009 at 11:15 AM, mdipierro <mdipie...@cs.depaul.edu> wrote: > > Do you mean you want to return it as in > > def mycontroller(): > xml="<hello>World</hello>" > response.headers['Content-Type']='text/xml' > return xml > > or do you want to email it > > def mycontroller(): > from gluon.tools import Mail > mail=Mail() > mail.server='....' > mail.sender='''' > mail.login='....' > xml="<hello>World</hello>" > mail.send(to='...',message=xml) > return "done" > > > > > > On May 29, 12:17 am, durga <durgaprasadmoga...@gmail.com> wrote: > > i have xml data framed in my controller. now i would like to send it > > as response to client without using view. can someone please let me > > know how to do it. > > > > thanks > > durga > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---