【发布时间】:2015-02-05 10:21:03
【问题描述】:
我有一些 html 表格内容。对于我的应用程序,我想在 android 中使用 JSOUP 解析来解析这些 html 内容。但是我是这个 JSOUP 方法的新手,我无法正确解析这些 html 内容。
HTML 数据:
<table id="box-table-a" summary="Tracking Result">
<thead>
<tr>
<th width="20%">AWB / Ref. No.</th>
<th width="30%">Status</th>
<th width="30%">Date Time</th>
<th width="20%">Location</th>
</tr>
</thead>
<tbody>
<tr>
<td width="20%" nowrap="nowrap" class="click"><a href="Javascript:void(0);" onclick="Javascript: document.frm_Z45681583.submit();">Z45681583</a></td>
<td width="30%" nowrap="nowrap" class="click">
IN TRANSIT<div id='ntfylink' style='display:block; text-decoration:blink'><a href='#' class='topopup' name='modal' style='text-decoration:none'><font face='Verdana' color='#DF0000'><blink>Notify Me</blink></font></a></div>
</td>
<td width="30%">
Sat, Jan, 31, 2015 07:09 PM
</td>
<td width="20%">DELHI</td>
</tr>
</tbody>
</table>
从这个表中我需要“td”内容。
任何帮助将不胜感激。
【问题讨论】: