Node.nodeKind

Node.nodeKind as string

Summary

Return a string indicating the type of the node.

Example

cts.doc('/anyDocument.json').nodeKind;

// returns 'document' because it was applied to a document node
Powered by MarkLogic Server | Terms of Use | Privacy Policy