0 Replies Latest reply on Jul 2, 2008 1:15 AM by liedzeit

    Xpath count problem

    liedzeit Level 2
      I have a problem using the count function.
      This crashes ExtendScript Toolkit Editor:

      var xpathexpr="count(//document)";
      var newxmlobj=docdata.xpath(xpathexpr);
      alert(newxmlobj.toString());

      This xpath expression for example works: "//document[@pubname]";

      Whatever I tried I get syntax errors or crashes. How do I get the number of nodes?

      Thank you,
      Ralf