1        XPathFactory xPathFactory = XPathFactory.newInstance();
 2             XPath xpath = xPathFactory.newXPath();
 3 
 4             try {
 5                 String rdfID = xpath.evaluate("/validateResponse/id", respValtElement);
 6                 String rdfResult = xpath.evaluate("/validateResponse/content", respValtElement);
 7         
 8                 System.out.println("校验结果:" + rdfResult);
 9             } catch (XPathExpressionException e) {
10                 // TODO Auto-generated catch block
11                 e.printStackTrace();
12             }

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-08-21
  • 2022-12-23
  • 2022-12-23
  • 2021-07-07
  • 2022-01-03
  • 2021-11-17
猜你喜欢
  • 2021-10-19
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-12
  • 2021-07-10
相关资源
相似解决方案