【发布时间】:2014-02-28 01:09:18
【问题描述】:
我正在使用 XmlPullParser 在 android 中构建一个应用程序。
如何从这样格式的 html 中获取内容?
<div class="content">
"Some text is here."
<br>
"some more text "<a class="link" href="adress">continues here</a>
<br>
</div>
我想像这样解析所有内容:
"Some text is here.
some more text continues here"
“在此处继续”部分也应该是超链接的。
在某些 cmets 之后添加:HTML 首先放入 Yahoo YQL,然后 YQL 生成 XML。我在代码中使用生成的 XML 文件。上面提到的我要解析的部分来自生成的 XML。
【问题讨论】:
标签: android nested html-parsing xmlpullparser