Loading TOC...

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";

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