【发布时间】:2017-03-24 18:43:33
【问题描述】:
我正在使用 jsoup 从我的大学网站 (html) 读取数据以在 android 应用中显示结构化数据。
我正在使用以下代码
Elements elements=doc.getElementsByClass("maintable").get(0).getElementsByTag("table").get(0).getElementById("table3").getElementsByTag("tbody").get(0).getElementsByTag("tr");
这是我必须显示的图像 enter image description here
html代码是
<table border="0" align="center" cellpadding="0" style="width:101%;" class="maintable" id="table5">
<tbody><tr class="parent" title="Please Click Here To View The Content">
<td colspan="4" class="MTTD1" align="center"><b><u>Personal Details</u></b></td>
【问题讨论】:
-
你的预期输出是什么?