| Constructor and Description |
|---|
CompareXmlUtil() |
| Modifier and Type | Method and Description |
|---|---|
static String |
chomp(String str) |
static Map<String,String> |
getPxZd() |
static Map<String,String> |
getQcJd() |
static Map<String,String> |
getQcZd() |
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)
Copyright © 2015–2022 cn.gtmap. All rights reserved.