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.

Comments

The commenting feature on this page is enabled by a third party. Comments posted to this page are publicly visible.