XML響應很喜歡,但在一個標籤,文字是這樣的:解析問題在解析XML響應的Android
<Description>
<center><strong><span>Warehouse/Building Maintenance</span></strong></center><br />
<br />
<strong><span>I</span></strong><span>mmediate openings available in the local Perris area for warehouse/building building maintenance positions. <br />
<br />
<strong>Job Description:</strong><br />
</span>
<ul>
<li><span>Associates will be responsible to define pieces of equipment that will paralyze operations if they fail, and plan whatever level of preventative maintenance necessary. <br />
</span></li>
<li><span>
......
similar text
......
</Description>
我能不能分析它以適當的方式。
我嘗試使用Jsoup.parse((nodeValue))
和Html.fromHtml(String)
也URLEncoder.encode(String)
但其迴歸簡單&
符號完蛋了。
如何解析這種類型的響應?
當我替換時,喜歡你說它仍然返回相同的字符。 – Udaykiran
你的意思是完整的字符串被替換爲&? – Sephy
無論如何thanx我解決了這個問題,用我發佈的答案 – Udaykiran