Hello everybody,

I am new to marklogic and I have a very basic question about the xcc api.
Is it possible to update a document with DOM and lock it while modifying?

1- open a session
2- get a document as DOM.
3- lock the document (so nobody can update it).
4- modify the DOM document
5- insert the document in the db
6- unlock the document.

I found the XQuery built-in function xdmp:lock-acquire, but it does not
seem to work the way I want. I am stocked.

thanks,

eric

-- 
Be Yourself @ mail.com!
Choose From 200+ Email Addresses
Get a Free Account at www.mail.com

_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general

Reply via email to