Ejemplo n.º 1
0
 /**
  * 读取本地的xml数据,一般用来自测用
  *
  * @param localPath 本地xml文件路径
  * @return 读到的xml字符串
  */
 public static String getLocalXMLString(String localPath) throws IOException {
   return Util.inputStreamToString(Util.class.getResourceAsStream(localPath));
 }