XML schemas for application/xml

Hello. We want to make our API return both application/json and application/xml. However, we cannot understand how we can create XML schemas. Do we have to use the json schemas but with application/xml mime type? Thanks in advance.