Loading TOC...

cts.doc

cts.doc(
   uri as String
) as Node?

Summary

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.

Usage Notes

The 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.

Example

cts.doc("/mydocs/doc.xml")

=> returns the document at the URI /mydocs/doc.xml

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.