public static JSONObject xmlToJson(String xmlStr) {
Map<String, Object> result = XmlUtil.xmlToMap(xmlStr);
JSONObject jsonObject = JSONObject.fromObject(result);
System.out.println(jsonObject);
return jsonObject;
}
public static JSONObject xmlToJson(String xmlStr) {
Map<String, Object> result = XmlUtil.xmlToMap(xmlStr);
JSONObject jsonObject = JSONObject.fromObject(result);
System.out.println(jsonObject);
return jsonObject;
}