<table style="width: 100%;" cellspacing="0" cellpadding="0" align="left" border="1">
<tr height="25" bgcolor="#c8ccdb">
<td width="85px">
<font color="#11248D">序号</font>
</td>
<td width="100px">
3402040000176561
</td>
<td width="90px">
<font color="#11248D">违法时间</font>
</td>
<td width="150px">
2012-07-25 09:51:00.0
</td>
<td width="105px">
<font color="#11248D">违法详细地址</font>
</td>
<td width="110px">
大工山路南塘湖路交叉口至九华南交叉口路段
</td>
</tr>
<tr height="25">
<td width="85px">
<font color="#11248D">违法行为</font>
</td>
<td colspan="6">
违反规定停放、临时停车且驾驶人不在现场或驾驶人虽在现场拒绝立即驶离,妨碍其他车辆、行人通行的
</td>
</tr>
<tr height="25">
<td width="85px">
<font color="#11248D">采集机关</font>
</td>
<td colspan="6">
弋江大队二中队
</td>
</tr>
<tr height="25" bgcolor="#c8ccdb">
<td width="85px">
<font color="#11248D">序号</font>
</td>
<td width="100px">
3201000029912277
</td>
<td width="90px">
<font color="#11248D">违法时间</font>
</td>
<td width="150px">
2012-10-04 08:09:00.0
</td>
<td width="105px">
<font color="#11248D">违法详细地址</font>
</td>
<td width="110px">
应天大街 云锦路路口
</td>
</tr>
<tr height="25">
<td width="85px">
<font color="#11248D">违法行为</font>
</td>
<td colspan="6">
机动车不按交通信号灯规定通行的
</td>
</tr>
<tr height="25">
<td width="85px">
<font color="#11248D">采集机关</font>
</td>
<td colspan="6">
江苏省南京市公安局交通管理局
</td>
</tr>
<tr height="25" bgcolor="#c8ccdb">
<td width="85px">
<font color="#11248D">序号</font>
</td>
<td width="100px">
3201220031381070
</td>
<td width="90px">
<font color="#11248D">违法时间</font>
</td>
<td width="150px">
2013-02-25 14:24:00.0
</td>
<td width="105px">
<font color="#11248D">违法详细地址</font>
</td>
<td width="110px">
浦口大道 新浦路路口
</td>
</tr>
<tr height="25">
<td width="85px">
<font color="#11248D">违法行为</font>
</td>
<td colspan="6">
驾驶机动车违反道路交通信号灯通行的
</td>
</tr>
<tr height="25">
<td width="85px">
<font color="#11248D">采集机关</font>
</td>
<td colspan="6">
南京市公安局浦口分局交巡警大队
</td>
</tr>
<tr height="25" bgcolor="#c8ccdb">
<td width="85px">
<font color="#11248D">序号</font>
</td>
<td width="100px">
3402040000270156
</td>
<td width="90px">
<font color="#11248D">违法时间</font>
</td>
<td width="150px">
2013-08-09 13:51:00.0
</td>
<td width="105px">
<font color="#11248D">违法详细地址</font>
</td>
<td width="110px">
弋江南路与红花山交叉口至弋江南路与马仁山西路交叉口路段
</td>
</tr>
<tr height="25">
<td width="85px">
<font color="#11248D">违法行为</font>
</td>
<td colspan="6">
驾驶中型以上载客载货汽车、危险物品运输车辆以外的其他机动车行驶超过规定时速10%以上不到20%的
</td>
</tr>
<tr height="25">
<td width="85px">
<font color="#11248D">采集机关</font>
</td>
<td colspan="6">
弋江大队
</td>
</tr>
<tr height="25" bgcolor="#c8ccdb">
<td width="85px">
<font color="#11248D">序号</font>
</td>
<td width="100px">
3499081000103456
</td>
<td width="90px">
<font color="#11248D">违法时间</font>
</td>
<td width="150px">
2013-07-21 09:06:28.0
</td>
<td width="105px">
<font color="#11248D">违法详细地址</font>
</td>
<td width="110px">
芜合高速安徽段0006公里650米
</td>
</tr>
<tr height="25">
<td width="85px">
<font color="#11248D">违法行为</font>
</td>
<td colspan="6">
车辆发生故障或交通事故后,不按规定设置警告标志的
</td>
</tr>
<tr height="25">
<td width="85px">
<font color="#11248D">采集机关</font>
</td>
<td colspan="6">
芜湖市高速一大队
</td>
</tr>
</table>怎么把这5条违章,解析成一条条记录,
<tr height="25" bgcolor="#c8ccdb">
<td width="85px">
<font color="#11248D">序号</font>
</td>
<td width="100px">
3402040000176561
</td>
<td width="90px">
<font color="#11248D">违法时间</font>
</td>
<td width="150px">
2012-07-25 09:51:00.0
</td>
<td width="105px">
<font color="#11248D">违法详细地址</font>
</td>
<td width="110px">
大工山路南塘湖路交叉口至九华南交叉口路段
</td>
</tr>
<tr height="25">
<td width="85px">
<font color="#11248D">违法行为</font>
</td>
<td colspan="6">
违反规定停放、临时停车且驾驶人不在现场或驾驶人虽在现场拒绝立即驶离,妨碍其他车辆、行人通行的
</td>
</tr>
<tr height="25">
<td width="85px">
<font color="#11248D">采集机关</font>
</td>
<td colspan="6">
弋江大队二中队
</td>
</tr>
<tr height="25" bgcolor="#c8ccdb">
<td width="85px">
<font color="#11248D">序号</font>
</td>
<td width="100px">
3201000029912277
</td>
<td width="90px">
<font color="#11248D">违法时间</font>
</td>
<td width="150px">
2012-10-04 08:09:00.0
</td>
<td width="105px">
<font color="#11248D">违法详细地址</font>
</td>
<td width="110px">
应天大街 云锦路路口
</td>
</tr>
<tr height="25">
<td width="85px">
<font color="#11248D">违法行为</font>
</td>
<td colspan="6">
机动车不按交通信号灯规定通行的
</td>
</tr>
<tr height="25">
<td width="85px">
<font color="#11248D">采集机关</font>
</td>
<td colspan="6">
江苏省南京市公安局交通管理局
</td>
</tr>
<tr height="25" bgcolor="#c8ccdb">
<td width="85px">
<font color="#11248D">序号</font>
</td>
<td width="100px">
3201220031381070
</td>
<td width="90px">
<font color="#11248D">违法时间</font>
</td>
<td width="150px">
2013-02-25 14:24:00.0
</td>
<td width="105px">
<font color="#11248D">违法详细地址</font>
</td>
<td width="110px">
浦口大道 新浦路路口
</td>
</tr>
<tr height="25">
<td width="85px">
<font color="#11248D">违法行为</font>
</td>
<td colspan="6">
驾驶机动车违反道路交通信号灯通行的
</td>
</tr>
<tr height="25">
<td width="85px">
<font color="#11248D">采集机关</font>
</td>
<td colspan="6">
南京市公安局浦口分局交巡警大队
</td>
</tr>
<tr height="25" bgcolor="#c8ccdb">
<td width="85px">
<font color="#11248D">序号</font>
</td>
<td width="100px">
3402040000270156
</td>
<td width="90px">
<font color="#11248D">违法时间</font>
</td>
<td width="150px">
2013-08-09 13:51:00.0
</td>
<td width="105px">
<font color="#11248D">违法详细地址</font>
</td>
<td width="110px">
弋江南路与红花山交叉口至弋江南路与马仁山西路交叉口路段
</td>
</tr>
<tr height="25">
<td width="85px">
<font color="#11248D">违法行为</font>
</td>
<td colspan="6">
驾驶中型以上载客载货汽车、危险物品运输车辆以外的其他机动车行驶超过规定时速10%以上不到20%的
</td>
</tr>
<tr height="25">
<td width="85px">
<font color="#11248D">采集机关</font>
</td>
<td colspan="6">
弋江大队
</td>
</tr>
<tr height="25" bgcolor="#c8ccdb">
<td width="85px">
<font color="#11248D">序号</font>
</td>
<td width="100px">
3499081000103456
</td>
<td width="90px">
<font color="#11248D">违法时间</font>
</td>
<td width="150px">
2013-07-21 09:06:28.0
</td>
<td width="105px">
<font color="#11248D">违法详细地址</font>
</td>
<td width="110px">
芜合高速安徽段0006公里650米
</td>
</tr>
<tr height="25">
<td width="85px">
<font color="#11248D">违法行为</font>
</td>
<td colspan="6">
车辆发生故障或交通事故后,不按规定设置警告标志的
</td>
</tr>
<tr height="25">
<td width="85px">
<font color="#11248D">采集机关</font>
</td>
<td colspan="6">
芜湖市高速一大队
</td>
</tr>
</table>怎么把这5条违章,解析成一条条记录,
解决方案 »
- i9100 9300复制数据库问题
- 切换Tab选项卡时重新启动activity的问题
- 100分 怎样禁止Activity重新onCreate
- android混淆编译,打包时找不到资源的问题
- 动态增加listview中的列表项,怎么不能传参数进去?
- 关于android 2.1源码中开机logo上闪动的光标
- jquery mobile 为什么很慢?
- 开源自己一款日历应用源码给大家
- 看大家android界面设计是拿Android Design UI Kit设计的,不直接在eclipse里设计,但是UI KIT怎么用呢
- 如何同时使用WIFI和移动数据
- 如何在通话中唤醒屏幕
- 请教:如何为手机设置手机铃声---针对某些人
</td>
<td colspan="6">
驾驶中型以上载客载货汽车、危险物品运输车辆以外的其他机动车行驶超过规定时速10%以上不到20%的
</td>
“怎么把这5条违章,解析成一条条记录,”是指违法行为后面的那一条记录吗
按我粗浅的理解 就是匹配这么一句话 <font color="#11248D">违法行为</font> </td> <td colspan="6">以 </td>结尾 然后读取其中的内容
不过你这个换行较多 匹配规则需要注意多测试下
现考虑把html解析成xml格式,在解析xml就很好办了