Add XML response to API requests