MarkLogic 12 EA 1 Product Documentation
NodeList.lengthNodeList.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";
Copyright © 2024 MarkLogic Corporation. MARKLOGIC is a
registered trademark of MarkLogic Corporation.