code: public static String xpathExtract(Node document, String xpathExpression, Map<String, String> namespaceMapping) throws XPathException,
                  MarshallingException
      {
          return (String) executeXPath(document, xpathExpression, namespaceMapping, XPathConstants.STRING);
      }
docs: Runs the given xpath and returns a {@link String} result.