Is there any way we can return an endpoint data as XML?

Hello!

I’m trying to make a custom strapi endpoint that returns a XML file for Google Merchant Center but I couldn’t return it as a XML. I tried to search for something about returning XML but didn’t find anything about it.

Is there any way I can return as a XML format ?

System Information
  • Strapi Version: 4.9.1
  • Operating System: Win 11
  • Database: sqlite3
  • Node Version: v16.17.0
  • NPM Version: 8.15.0
  • Yarn Version: -