One way I've discovered is to call mem:node-replace(), pass it the same
parameters used in my call to xdmp:node-replace(), and spit out the return
value from mem:node-replace() which is what the updated document looks like.

But perhaps there's a better workaround out there.

On Fri, Mar 27, 2015 at 11:53 AM, Danny Sinang <[email protected]> wrote:

> I've an update query that replaces a node within a document.
>
> The node replacement works, but the requirement is for the same query to
> return the contents of the updated document.
>
> I know this isn't normally possible since the update query doesn't do a
> commit till after the query is executed.
>
> Anybody know of a workaround for this ?
>
> Regards,
> Danny
>
>
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to