xdmp.collectionProperties( [uri as String[]] ) as Sequence
Returns a sequence of properties documents, one for each document in the specified collection(s) that has a corresponding properties document.
Parameters | |
---|---|
uri | The URI(s) of the collection(s). |
for (var d of xdmp.collectionProperties( ["http://example.com/col1/", "http://example.com/col2/"])) { if ( d.root.xpath("/property::cpf:error", {"cpf": "http://marklogic.com/cpf"}) ) { xdmp.nodeUri(d); }; }; => A list of document URIs of documents that have a cpf:error property in their corresponding properties documents. For example: http://example.com/bar.xml http://example.com/baz.xml
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.