将string类型的xml转对象
string类型的xml结果如截图
![图一](https://img-blog.csdnimg.cn/20191122145628574.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzM4NTQ1OTY1,size_16,color_FFFFFF,t_70)
现在要将IP_VALUE转化为实体类。
上代码。
String result = "<NewDataSet><Table><IP_VALUE>0.125447616</IP_VALUE></Table></NewDataSet>";
JSONObject object = XML.toJSONObject(result);
String jsonData = object.toString();
String jsonObject = jsonData.