我得到的字符串從URL像這樣與其他價值
<string xmlns="http://tempuri.org/">
{"jewellery":{"Madurai":[{"id":"1","category":"Jewellery","type":"Silver","name":"Kallyan","banner":"","logo":"","about":"Kallyan Jewellery","contact":"Kallyan Jewellery","map":{"lat_long_1":{"latitude":"1.4875","longitude":"2.1547"}}},{"id":"2","category":"Jewellery","type":"Silver","name":"Kallayan Test","banner":"","logo":"","about":"Kallayan Test","contact":"Kallayan Test","map":{"lat_long_1":{"latitude":"24242","longitude":"2424"}}} ],"total":2} }
</string>
我需要從字符串中刪除<string xmlns="http://tempuri.org/">
和</string>
單獨替換字符串。我怎樣才能做到這一點?
我嘗試使用string.replace("","")
發生了什麼事,你使用後'與string.replace( 「」, 「」 );'打破懸念... – Renjith