NodeList.length

NodeList.length as Number

Summary

Return the number of nodes in the node list.

Example

if (cts.doc("example.xml").getElementsByTagName("para").length==0)
  then "No paragraphs found";
Powered by MarkLogic Server | Terms of Use | Privacy Policy