i expect to delete an entire document with xquery, but it doesn’t work.
update for $q in input()/organisation where $q/id=1 do( delete $q )
I got the error message:
update results in non-well-formed document;attempt to delete the root element
Any suggestion is welcome,
Thank you in advance