【发布时间】:2013-01-01 11:03:05
【问题描述】:
我从这样的网址获取字符串
<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("","");之后发生了什么打破悬念...