
cts.doc( uri as String ) as Node?
Returns the document stored in the database at the specified URI.
To retrieve multiple documents stored at multiple URIs, use
fn.doc instead.
| Parameters | |
|---|---|
| uri | The URI of the document to retrieve. |
document-node() returned contains an
element() root node for XML documents, a
text() root node for text documents, and a
binary() root node for binary documents.
cts.doc("/mydocs/doc.xml")
=> returns the document at the URI /mydocs/doc.xml
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.