Accept text/xml and text/json (for backwards compatibility).