Using Pyramid and Cornice, how can I tell Cornice to return XML responses instead of JSON? It seems that by default JSON is used, and this article shows how to add a new text/plain
renderer to Cornice. Error responses still contain a JSON body.
How do I switch to XML?
As far as I know there are two ways to return XML data:
Render XML with Mako:
Set the Response Content Type: