[MarkLogic Dev General] How to display updated document right after update query

Danny Sinang d.sinang at gmail.com
Fri Mar 27 09:02:25 PDT 2015

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 <d.sinang at gmail.com> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://developer.marklogic.com/pipermail/general/attachments/20150327/567f1c4a/attachment.html 

More information about the General mailing list