public class XmlUtil extends Object
| Constructor and Description |
|---|
XmlUtil() |
| Modifier and Type | Method and Description |
|---|---|
static Map |
doXMLParse(String strxml)
解析xml,返回第一级元素键值对。如果第一级元素有子节点,则此节点的值是子节点的xml数据。
|
static String |
getChildrenText(List children)
获取子结点的xml
|
static InputStream |
String2Inputstream(String str) |
public static Map doXMLParse(String strxml) throws Exception
strxml - IOExceptionExceptionpublic static InputStream String2Inputstream(String str)
Copyright © 2018. All rights reserved.