XMLDocument.root

XMLDocument.root as String

Summary

This is inherited from the Document object.

The root node of the document.

Example

// 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>
Powered by MarkLogic Server | Terms of Use | Privacy Policy