
Document.root as String
The root node of the document.
// Assume the document 'example.xml' has the following contents:
// <example><title>Example document</title></example>
//
cts.doc("example.xml").root;
// Returns: <example><title>Example document</title></example>
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.