/**
* 将xml转换成Map
* @param xml
* @return
*/
String response = HttpUtil.sendRequestByPost(url, requestMap);
Map<String, Object> responseMap = new HashMap<String, Object>();
responseMap = xmlToMap(response);
Map<String, String> restultMap = new HashMap<String, String>();
restultMap = (Map<String, String>)(responseMap.get("returnsms"));
public static Map
将xml形式的响应(response)转化为map集合
最新推荐文章于 2023-03-03 18:17:28 发布
本文介绍如何在Java中将接收到的XML格式的响应数据解析并转换为Map集合,便于进一步处理和操作。
摘要由CSDN通过智能技术生成