Hi,
I must be missing the obvious, but is there a way to serialize element() or node() into xs:string with the XML getting entity escaped in BaseX?
Something like:
let $xml as element() := <xml>Hello World</xml> return serialize($xml, map{"method":"entity-escaped-string"}
would result in
<xml>Hello World</xml>