You could use the following steps to export an XML string as a text file in Crystal Reports:
- Create a new blank report in Crystal Reports.
- Add a new formula field to the report.
- In the formula field, enter the XML string you want to export.
- Save and close the formula field.
- Open the Export Report wizard by selecting File > Export from the main menu.
- Select the Text (Tab delimited) option from the list of available file formats.
- Choose a location and file name for the exported file.
- In the Export Options dialog, select the formula field containing the XML string as the data to export.
- Click OK to start the export process.
- Once the export is complete, check the exported file to ensure it contains the expected data.