OpenAPI does support XML data https://swagger.io/docs/specification/data-models/representing-xml/ but this library currently only has SetJSONResponse methods. Would be good to see XML support