| 构造器和说明 |
|---|
CompareXmlUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
chomp(String str) |
static Map<String,String> |
getPxZd() |
static void |
main(String[] args) |
static org.dom4j.Document |
map2xml(Map<String,Object> map,
String rootName) |
static org.dom4j.Element |
setAttributes(Map map,
org.dom4j.Element subElement) |
static Map |
xml2map(String xmlStr,
boolean needRootKey)
xml转map 不带属性
|
public static Map xml2map(String xmlStr, boolean needRootKey) throws org.dom4j.DocumentException
xmlStr - needRootKey - 是否需要在返回的map里加根节点键org.dom4j.DocumentExceptionpublic static org.dom4j.Element setAttributes(Map map, org.dom4j.Element subElement)
public static void main(String[] args)
Copyright © 2015–2020 cn.gtmap. All rights reserved.