docs: public static String getValue(Document document, String xPath) {
  
          Node node = document.selectSingleNode(xPath);
          if (node != null) {
              // return the value
              return node.getText();
          } else {
              return null;
          }
      }