src/main/java/com/whyc/dto/XmlFileOpreate.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
src/main/java/com/whyc/dto/XmlFileOpreate.java
@@ -155,7 +155,7 @@ for (Map.Entry<String, String> entry:map.entrySet()) { String mapKey = entry.getKey(); String mapValue = entry.getValue(); System.out.println(mapKey+":"+mapValue); //System.out.println(mapKey+":"+mapValue); //得到第一个mapKey节点 Node node=document.selectSingleNode("//"+mapKey); node.setText(mapValue);