In the backend I'm looking to render a report to XML just like the javascript function QWeb.render() does. Using the QWeb function
def render(self, cr, uid, id_or_xml_id, qwebcontext=None, loader=None, context=None):
I end up with an HTML render. Is there some option I can use?