code: public static Double evaluateAsNumber(Node node, String xPathExpression, NamespaceContext nsContext) {
          return (Double) evaluateExpression(node, xPathExpression, nsContext, XPathConstants.NUMBER);
      }
docs: Evaluate XPath expression with result type Number.
  @param node
  @param xPathExpression
  @param nsContext
  @return