
xdmp:access( $uri as xs:string, $action as xs:string ) as xs:boolean
Returns whether a given action on the specified document URI would succeed.
| Parameters | |
|---|---|
| uri | The document URI. |
| action | The type of access: "create", "insert", "update", "node-update" or "execute". |
xdmp:access(
"http://example.com/foo.xml",
"create")
=> true()
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.