NodeList.length as Number
Return the number of nodes in the node list.
if (cts.doc("example.xml").getElementsByTagName("para").length==0) then "No paragraphs found";
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.