meth = method_id and getattr(ob, method_id) or (lambda : 'Not implemented')
RESPONSE.setStatus(httpRespCode)
RESPONSE.setHeader('Content-Type', 'text/xml;;charset=utf-8')
- return '<![CDATA[%s]]>' % meth()
+ return '<fragment>%s></fragment>' % meth().strip()
# ## overload to maintain ownership if authenticated user has 'Manage portal' permission