Package tech.mgl.core.utils
Class MGL_XMLUtils
java.lang.Object
tech.mgl.core.utils.MGL_XMLUtils
ClassName: XMLUtils
- Author:
- hotpot ...
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Stringstatic voidstatic <T> TparseToBean(String xml, Class<T> type) @title : 把XML格式的字符串转换成BEAN对象,只转第一层属性,里面有集合或者嵌套无效parseToMap(String xml) @title : 把XML格式的字符串转换成MAPvoidtest()static <T> StringtoXml(T t)
-
Constructor Details
-
MGL_XMLUtils
public MGL_XMLUtils()
-
-
Method Details
-
parseToMap
@title : 把XML格式的字符串转换成MAP
@param xml
@return
@throws Exception
@company :
@author : www.mgl.tech
@date : 2016 Apr 23, 2016 10:56:54 AM
@description :
@return : Mapinvalid input: '<'String,Object>
- Throws:
Exception
-
parseToBean
@title : 把XML格式的字符串转换成BEAN对象,只转第一层属性,里面有集合或者嵌套无效
@param xml
@param t
@throws Exception
@company :
@author : www.mgl.tech
@date : 2016 Apr 25, 2016 10:29:57 AM
@description :
@return : void
- Throws:
Exception
-
test
public void test() -
main
-
getPostData
-
toXml
-