file:write-text() did the trick—that did not occur to me at all. Cheers,
E. _____________________________________________ Eliot Kimber Sr Staff Content Engineer O: 512 554 9368 M: 512 554 9368 servicenow.com<https://www.servicenow.com> LinkedIn<https://www.linkedin.com/company/servicenow> | Twitter<https://twitter.com/servicenow> | YouTube<https://www.youtube.com/user/servicenowinc> | Facebook<https://www.facebook.com/servicenow> From: Christian Grün <christian.gr...@gmail.com> Date: Thursday, November 30, 2023 at 4:00 PM To: Eliot Kimber <eliot.kim...@servicenow.com> Cc: BaseX <basex-talk@mailman.uni-konstanz.de> Subject: Re: [basex-talk] Generate CSV with literal "&", not "&" [External Email] ________________________________ Hi Eliot,let $doWrite := file:write('/Users/eliot.kimber/temp/apps-to-topics.csv', $report)file:write-text should do the job. An alternative is to use the serialization method 'text':file:write($path, $value, map { 'method': 'text })Hope this helps,Chr i This message needs your attention • Someone new is on this email. Provided by ServiceNow DT (Employee Portal KB0077950) - This banner is visible only to ServiceNow employees.<https://mimecast.com> Hi Eliot, let $doWrite := file:write('/Users/eliot.kimber/temp/apps-to-topics.csv', $report) file:write-text should do the job. An alternative is to use the serialization method 'text': file:write($path, $value, map { 'method': 'text }) Hope this helps, Christian