Add the ability to output XML for webapi responses
Review Request #623 — Created Nov. 7, 2008 and submitted — Latest diff uploaded
This change provides the ability to output a simple XML format from API calls. There's not much too this format. It's essentially an XML-ified version of our JSON output, with the exception that we use <array><item>..</item></array> tags for values in an array, since there's no concept of an array per se in XML. Existing users of the webapi code can now update their urls.py to do: (r'^api/(?P<api_format>json|xml)/', include('myapi.urls')) And will automatically have support for the XML output.
Verified that I was able to get the expected output for all the calls I tested.