How to parse the html content in android using SAX PARSER

北城余情 提交于 2019-12-06 05:56:08

问题


There is description tag in xml. It contains the html tags. I am using SAX parser in android to parse. But when it fetch data from the description tag then it does not fetch the html contents, not any tags. Then how i solve the problem of the html content parsing from the XML using SAX parser please help.


回答1:


It looks like you need wrap the description in CDATA element http://en.wikipedia.org/wiki/CDATA



来源:https://stackoverflow.com/questions/3625907/how-to-parse-the-html-content-in-android-using-sax-parser

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!