【发布时间】:2012-05-26 22:13:32
【问题描述】:
我的 xml 中有这个标签:
<description><![CDATA[<div><b>Location:</b> PUMBA Auditorium - University of Pune</div>
<div><b>Start Time:</b> 5/15/2012 11:00 AM</div>
<div><b>End Time:</b> 5/15/2012 2:00 PM</div>
<div><b>Description:</b> <div>General B. C. Joshi Memorial Lecture 2012- Perspective on War in the 21st Century - By Lt. Gen. A. K. Singh</div></div>
<div><b>Attachments:</b> <a href="http://uopnews.unipune.ac.in/Lists/Calendar/Attachments/14/bcjoshi2012[1].pdf">http://uopnews.unipune.ac.in/Lists/Calendar/Attachments/14/bcjoshi2012[1].pdf</a><br><a href=""></a></div>
]]></description>
我需要删除“<div><b>” n 只想显示内容。
我应该为此做些什么。?
请帮我。
提前致谢。
【问题讨论】:
-
看看这对你有没有帮助:stackoverflow.com/questions/9244345/…
-
我已经尝试了上面的链接,但它只给了我这个输出:位置:PUMBA礼堂 - 浦那大学我想要的输出是: PUMBA 礼堂 - 浦那大学 开始时间:2012 年 5 月 15 日上午 11:00 结束时间:2012 年 5 月 15 日下午 2:00 描述:2012 年 BC 乔希将军纪念讲座 - 21 世纪战争的观点 - Lt . AK Singh 将军 附件:uopnews.unipune.ac.in/Lists/Calendar/Attachments/14/…。有没有办法获得这种类型的输出?
标签: android xml-parsing sax