code: public static NodeList getElementsB(Node node, String xString) throws XPathExpressionException {
          XPathExpression xPath = compileX(xString);
          return (NodeList) xPath.evaluate(node, XPathConstants.NODESET);
      }
docs: Helper program: Extracts the specified XPATH expression
  from an XML-String.
  
  @param node    the node
  @param xString the x path
  @return NodeList
  @throws XPathExpressionException the x path expression exception