Add support for XML in the api_call helper.