Hi Karan! I don't believe we natively support XML exporting. Retool can definitely handle exporting as CSV, TSV, JSON, XLSX, but you may be able to use an external library for this. I have not tried it myself you may be able to use something like the fast xml parser js library.
Docs for our utils.downloadFile method
Docs for using libraries in Retool