ah, I see, it's using expath?


file:write($file as xs:string,
           $items as item()*) as empty-sequence()
file:write($file as xs:string,
           $items as item()*,
           $params as element(output:serialization-parameters)) as empty-sequence()


something like that?

On 12/15/20 9:15 AM, Nicholas wrote:
how is the return result from a query written to a file?


thanks,


Nick