I was updating an Origam application from version 2022.4 to 2025.2. The solution includes multiple API endpoints for external applications. After the update, one of the endpoints started returning an unexpected result, where the XML declaration was converted into JSON:
"?xml": {
"@version": "1.0",
"@encoding": "utf-8"
}
This API endpoint is set up as a application/json
Data Page with a defined transformation.
To remove the XML declaration from the result, I modified the transformation by adding the following element:
<xsl:output omit-xml-declaration="yes"/>