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