@Test public void testGetXmlValue() throws Exception { }
String getXmlValue(String... path) { Document doc = this.getXmlDoc(); String expression = String.format("/%s try { return (String) XPathFactory .newInstance() .newXPath() .compile(expression) .evaluate(doc, XPathConstants.STRING); } catch (XPathExpressionException e) { throw new RuntimeException("未找到相应路径的文本：" + expression); } }
BaseWxPayResult implements Serializable { String getXmlValue(String... path) { Document doc = this.getXmlDoc(); String expression = String.format("/%s try { return (String) XPathFactory .newInstance() .newXPath() .compile(expression) .evaluate(doc, XPathConstants.STRING); } catch (XPathExpressionException e) { throw new RuntimeException("未找到相应路径的文本：" + expression); } } }
BaseWxPayResult implements Serializable { String getXmlValue(String... path) { Document doc = this.getXmlDoc(); String expression = String.format("/%s try { return (String) XPathFactory .newInstance() .newXPath() .compile(expression) .evaluate(doc, XPathConstants.STRING); } catch (XPathExpressionException e) { throw new RuntimeException("未找到相应路径的文本：" + expression); } }  }
BaseWxPayResult implements Serializable { String getXmlValue(String... path) { Document doc = this.getXmlDoc(); String expression = String.format("/%s try { return (String) XPathFactory .newInstance() .newXPath() .compile(expression) .evaluate(doc, XPathConstants.STRING); } catch (XPathExpressionException e) { throw new RuntimeException("未找到相应路径的文本：" + expression); } }  static String fenToYuan(Integer fen); static T fromXML(String xmlString, Class<T> clz); @Override String toString(); Map<String, String> toMap(); void checkResult(WxPayService wxPayService, String signType, boolean checkSuccess); }
BaseWxPayResult implements Serializable { String getXmlValue(String... path) { Document doc = this.getXmlDoc(); String expression = String.format("/%s try { return (String) XPathFactory .newInstance() .newXPath() .compile(expression) .evaluate(doc, XPathConstants.STRING); } catch (XPathExpressionException e) { throw new RuntimeException("未找到相应路径的文本：" + expression); } }  static String fenToYuan(Integer fen); static T fromXML(String xmlString, Class<T> clz); @Override String toString(); Map<String, String> toMap(); void checkResult(WxPayService wxPayService, String signType, boolean checkSuccess);  }