首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 移动开发 > Android >

解析字符串解决方案

2013-09-28 
解析字符串table stylewidth: 100% cellspacing0 cellpadding0 alignleft border1tr h

解析字符串

                    <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条违章,解析成一条条记录,
[解决办法]
这个也行http://www.th7.cn/Program/java/2011/12/07/49658.shtml

热点排行