cn.gtmap.estateplat.utils
类 CompareXmlUtil

java.lang.Object
  继承者 cn.gtmap.estateplat.utils.CompareXmlUtil

public class CompareXmlUtil
extends Object

版本:
1.0, 2020-10-22
作者:
sunchao

构造方法摘要
CompareXmlUtil()
           
 
方法摘要
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 不带属性
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

CompareXmlUtil

public CompareXmlUtil()
方法详细信息

xml2map

public static Map xml2map(String xmlStr,
                          boolean needRootKey)
                   throws org.dom4j.DocumentException
xml转map 不带属性

参数:
xmlStr -
needRootKey - 是否需要在返回的map里加根节点键
返回:
抛出:
org.dom4j.DocumentException

map2xml

public static org.dom4j.Document map2xml(Map<String,Object> map,
                                         String rootName)

setAttributes

public static org.dom4j.Element setAttributes(Map map,
                                              org.dom4j.Element subElement)

chomp

public static String chomp(String str)

getPxZd

public static Map<String,String> getPxZd()

getQcZd

public static Map<String,String> getQcZd()

getQcJd

public static Map<String,String> getQcJd()


Copyright © 2015–2020 cn.gtmap. All rights reserved.