1.用到的jar
2.将xml格式的字符串转为xml格式
Document doc = DocumentHelper.parseText(result);
3.自己写公共的节点取值(这里只写主要只写代码)
Node node = doc.selectSingleNode(node_path);
node.getText();
注:有些复杂的处理可以自己研究下
参考资料:https://blog.csdn.net/qq_33532644/article/details/84959272