[web2py] return user defined xml

2012-10-16 Thread shanku
Hi,

1. How do i return user defined xml data from web2py?


2. I tried using xmlwitch along web2py but i get error :
error on line 1 at column 26: Specification mandate value for attribute 
instance

Need some help...

-
Deepak


-- 





[web2py] return user defined xml in web2py

2012-10-15 Thread deepak
Hi,

1. How do i return user defined XML with custom tags in web2py?


2. I wanted to use xmlwitch but i get the below error when i try to return 
the xml object:
error on line 1 at column 26: Specification mandate value for attribute 
instance

def get_xml():
xml = xmlwitch.Builder(version='1.0', encoding='utf-8')
with xml.feed(xmlns='http://www.w3.org/2005/Atom'):
xml.title('Example Feed')
xml.updated('2003-12-13T18:30:02Z')
response.headers['Content-Type']='text/xml'
#return XML(str(xml),sanitize=True)
#return XML(str(xml)).xml()
return xml

Need some help?

-
Deepak

--