/**
* 字符串转换成OMElement
*
* @param xmlStr
* 需转换的字符串
* @return
*/
public static OMElement str2OMElement(String xmlStr) {
OMElement xmlValue;
try {
xmlValue = new StAXOMBuilder(new ByteArrayInputStream(xmlStr
.getBytes("UTF-8"))).getDocumentElement();
return xmlValue;
} catch (Exception e) {
return null;
}
}
axis2_soap:字符串转换成OMElement
最新推荐文章于 2021-02-15 18:45:59 发布