[MarkLogic Dev General] xcc api - lock
eric_schmidt at post.com
Sat Aug 2 17:16:23 PDT 2008
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.
Be Yourself @ mail.com!
Choose From 200+ Email Addresses
Get a Free Account at www.mail.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the General