- Read external file which contains user provided contents (maybe, with
curly braces in some text contents or embedded in CDATA sections)
- Replace an existing node in DB with the read xml fragment using
parse-xml-fragment()
Why don’t you do something like..
let $xml := doc("external-file.xml") return replace node ... with $xml
Christian