如何使用SAX解析器解析Android中的HTML内容 [英] How to parse the html content in android using SAX PARSER
本文介绍了如何使用SAX解析器解析Android中的HTML内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有一个在XML描述标签。它包含HTML标记。我正在使用的Android SAX解析器解析。但是,当它从描述标签读取数据,那么它不会获取HTML内容,没有任何标记。那么如何解决我的HTML内容使用SAX解析器,请帮忙从XML解析的问题。
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.
推荐答案
它看起来像你需要包装在CDATA元素的描述的 http://en.wikipedia.org/wiki/CDATA
It looks like you need wrap the description in CDATA element http://en.wikipedia.org/wiki/CDATA
这篇关于如何使用SAX解析器解析Android中的HTML内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文