0

From below html code I need to get text between tr,th,td tags and display it in datagridview using vb.net

<div id="flArrTime"><table class="table table-striped arr_dep_table_parent"><thead class="arr_dep_table_head_landing font_panton_bold"><tr><th>FLIGHT NO</th><th>ORIGIN</th><th>VIA</th> <th>STA</th><th>TERMINAL</th><th>ETA</th><th>STATUS</th></tr></thead><tbody class="arr_dep_table_body"><tr><td>AI 216 D</td><td>Kathmandu</td><td></td><td>16:50<br>02/01/17</td><td>T3 </td><td> 16:10<br>03/01/17</td><td>Delayed</td></tr><tr><td>9W 567 </td><td>Dammam</td><td></td><td>05:40<br>03/01/17</td><td>T3 </td><td> 19:25<br>03/01/17</td><td>Delayed</td></tr><tr><td>ET 686 </td><td>Addis Ababa</td><td></td><td>08:05<br>03/01/17</td><td>T3 </td><td> 11:29<br>03/01/17</td><td>Arrived</td></tr><tr><td>AI 156 </td><td>Moscow</td><td></td><td>08:55<br>03/01/17</td><td>T3 </td><td> 11:18<br>03/01/17</td><td>Arrived</td></tr><tr><td>WY 241 </td><td>Muscat</td><td></td><td>09:25<br>03/01/17</td><td>T3 </td><td> 12:03<br>03/01/17</td><td>Arrived</td></tr><tr><td>AI 120 D</td><td>Frankfurt</td><td>Jaipur</td><td>09:35<br>03/01/17</td><td>T3 </td><td> 12:19<br>03/01/17</td><td>Arrived</td></tr><tr><td>RA 205 </td><td>Kathmandu</td><td></td><td>09:40<br>03/01/17</td><td>T3 </td><td> 14:10<br>03/01/17</td><td>Delayed</td></tr><tr><td>ZM 1025 </td><td>Bishkek</td><td></td><td>09:50<br>03/01/17</td><td>T3 </td><td> 15:25<br>03/01/17</td><td>Delayed</td></tr><tr><td>AI 142 </td><td>Paris</td><td></td><td>10:00<br>03/01/17</td><td>T3 </td><td> 11:32<br>03/01/17</td><td>Arrived</td></tr><tr><td>AI 348 </td><td>Mumbai</td><td></td><td>10:30<br>03/01/17</td><td>T3 </td><td> 11:58<br>03/01/17</td><td>Arrived</td></tr><tr><td>9W 587 </td><td>Dubai</td><td></td><td>10:35<br>03/01/17</td><td>T3 </td><td> 11:29<br>03/01/17</td><td>Arrived</td></tr><tr><td>EK 512 </td><td>Dubai</td><td></td><td>10:50<br>03/01/17</td><td>T3 </td><td> 11:13<br>03/01/17</td><td>Arrived</td></tr><tr><td>9W 121 </td><td>London Heathrow</td><td></td><td>10:50<br>03/01/17</td><td>T3 </td><td> 11:08<br>03/01/17</td><td>Arrived</td></tr><tr><td>SQ 402 </td><td>Singapore</td><td></td><td>10:55<br>03/01/17</td><td>T3 </td><td> 11:13<br>03/01/17</td><td>Arrived</td></tr><tr><td>KB 204 </td><td>Paro</td><td></td><td>11:00<br>03/01/17</td><td>T3 </td><td> 10:52<br>03/01/17</td><td>Arrived</td></tr><tr><td>W5 071 </td><td>Tehran</td><td></td><td>11:00<br>03/01/17</td><td>T3 </td><td> 11:39<br>03/01/17</td><td>Arrived</td></tr><tr><td>IX 116 </td><td>Abu Dhabi</td><td></td><td>11:05<br>03/01/17</td><td>T3 </td><td> 15:40<br>03/01/17</td><td>Delayed</td></tr><tr><td>KC 907 </td><td>Almaty</td><td></td><td>11:10<br>03/01/17</td><td>T3 </td><td> 11:49<br>03/01/17</td><td>Arrived</td></tr><tr><td>AI 112 </td><td>London Heathrow</td><td></td><td>11:20<br>03/01/17</td><td>T3 </td><td> 11:56<br>03/01/17</td><td>Arrived</td></tr><tr><td>AI 381 </td><td>Singapore</td><td></td><td>11:30<br>03/01/17</td><td>T3 </td><td> 12:12<br>03/01/17</td><td>Arrived</td></tr><tr><td>CZ 3027 </td><td>Guangzhou</td><td></td><td>11:30<br>03/01/17</td><td>T3 </td><td> 12:04<br>03/01/17</td><td>Arrived</td></tr><tr><td>7J 117 </td><td>Dushanbe</td><td></td><td>11:35<br>03/01/17</td><td>T3 </td><td> 11:35<br>03/01/17</td><td>Cancelled</td></tr><tr><td>AI 143 </td><td>Chennai</td><td></td><td>11:35<br>03/01/17</td><td>T3 </td><td> 12:18<br>03/01/17</td><td>Arrived</td></tr><tr><td>B3 773 </td><td>Paro</td><td>Kathmandu</td><td>11:35<br>03/01/17</td><td>T3 </td><td> 11:33<br>03/01/17</td><td>Arrived</td></tr><tr><td>VS 300 </td><td>London Heathrow</td><td></td><td>11:40<br>03/01/17</td><td>T3 </td><td> 12:06<br>03/01/17</td><td>Arrived</td></tr><tr><td>AI 113 </td><td>Amritsar</td><td></td><td>11:45<br>03/01/17</td><td>T3 </td><td> 13:07<br>03/01/17</td><td>Arrived</td></tr><tr><td>AI 214 </td><td>Kathmandu</td><td></td><td>11:45<br>03/01/17</td><td>T3 </td><td> 13:59<br>03/01/17</td><td>Delayed</td></tr><tr><td>9W 065 </td><td>Bangkok</td><td></td><td>12:00<br>03/01/17</td><td>T3 </td><td> 12:30<br>03/01/17</td><td>Arrived</td></tr><tr><td>AI 333 </td><td>Bangkok</td><td></td><td>12:05<br>03/01/17</td><td>T3 </td><td> 12:42<br>03/01/17</td><td>Arrived</td></tr><tr><td>AI 021 </td><td>Kolkata</td><td></td><td>12:05<br>03/01/17</td><td>T3 </td><td> 13:22<br>03/01/17</td><td>Arrived</td></tr><tr><td>AI 282 </td><td>Colombo</td><td></td><td>12:05<br>03/01/17</td><td>T3 </td><td> 12:43<br>03/01/17</td><td>Arrived</td></tr><tr><td>9W 271 </td><td>Dhaka</td><td></td><td>12:15<br>03/01/17</td><td>T3 </td><td> 12:35<br>03/01/17</td><td>Arrived</td></tr><tr><td>AI 078 </td><td>Bhubaneswar</td><td></td><td>12:20<br>03/01/17</td><td>T3 </td><td> 13:36<br>03/01/17</td><td>Arrived</td></tr><tr><td>RQ 115 </td><td>Kabul</td><td></td><td>13:00<br>03/01/17</td><td>T3 </td><td> 12:52<br>03/01/17</td><td>Arrived</td></tr><tr><td>CI 181 </td><td>Taipei</td><td></td><td>13:05<br>03/01/17</td><td>T3 </td><td> 12:52<br>03/01/17</td><td>Arrived</td></tr><tr><td>4Q 243 </td><td>Kabul</td><td></td><td>13:20<br>03/01/17</td><td>T3 </td><td> 13:39<br>03/01/17</td><td>Arrived</td></tr><tr><td>WY 245 </td><td>Muscat</td><td></td><td>13:25<br>03/01/17</td><td>T3 </td><td> 13:45<br>03/01/17</td><td>Arrived</td></tr><tr><td>FG 311 </td><td>Kabul</td><td></td><td>13:40<br>03/01/17</td><td>T3 </td><td> 13:17<br>03/01/17</td><td>Arrived</td></tr><tr><td>SG 022 </td><td>Kabul</td><td></td><td>14:20<br>03/01/17</td><td>T3 </td><td> 14:20<br>03/01/17</td><td>On Time</td></tr><tr><td>EK 516 </td><td>Dubai</td><td></td><td>14:45<br>03/01/17</td><td>T3 </td><td> 15:20<br>03/01/17</td><td>Delayed</td></tr><tr><td>AI 102 </td><td>New York JFK</td><td></td><td>14:50<br>03/01/17</td><td>T3 </td><td> 14:05<br>03/01/17</td><td>Expected</td></tr><tr><td>9W 281 </td><td>Kathmandu</td><td></td><td>15:05<br>03/01/17</td><td>T3 </td><td> 15:05<br>03/01/17</td><td>On Time</td></tr><tr><td>AI 991 </td><td>Lucknow</td><td></td><td>15:10<br>03/01/17</td><td>T3 </td><td> 15:10<br>03/01/17</td><td>On Time</td></tr><tr><td>AI 126 </td><td>Chicago</td><td></td><td>15:15<br>03/01/17</td><td>T3 </td><td> 14:30<br>03/01/17</td><td>Expected</td></tr><tr><td>9W 077 </td><td>Hong Kong</td><td></td><td>16:00<br>03/01/17</td><td>T3 </td><td> 16:00<br>03/01/17</td><td>On Time</td></tr><tr><td>AI 076 </td><td>Bhubaneswar</td><td></td><td>16:00<br>03/01/17</td><td>T3 </td><td> 16:00<br>03/01/17</td><td>On Time</td></tr><tr><td>6E 032 </td><td>Kathmandu</td><td></td><td>16:05<br>03/01/17</td><td>T3 </td><td> 16:05<br>03/01/17</td><td>On Time</td></tr><tr><td>AI 174 </td><td>San Francisco</td><td></td><td>16:15<br>03/01/17</td><td>T3 </td><td> 16:15<br>03/01/17</td><td>On Time</td></tr><tr><td>AI 155 </td><td>Goa</td><td></td><td>16:35<br>03/01/17</td><td>T3 </td><td> 18:35<br>03/01/17</td><td>Delayed</td></tr><tr><td>SV 764 </td><td>Madinah</td><td>Riyadh</td><td>16:45<br>03/01/17</td><td>T3 </td><td> 16:45<br>03/01/17</td><td>On Time</td></tr><tr><td>AI 216 </td><td>Kathmandu</td><td></td><td>16:50<br>03/01/17</td><td>T3 </td><td> 18:00<br>03/01/17</td><td>Delayed</td></tr><tr><td>9W 259 </td><td>Kathmandu</td><td></td><td>17:25<br>03/01/17</td><td>T3 </td><td> 17:47<br>03/01/17</td><td>Expected</td></tr><tr><td>G9 465 </td><td>Sharjah</td><td></td><td>17:30<br>03/01/17</td><td>T3 </td><td> 17:30<br>03/01/17</td><td>On Time</td></tr><tr><td>UL 195 </td><td>Colombo</td><td></td><td>17:35<br>03/01/17</td><td>T3 </td><td> 17:35<br>03/01/17</td><td>On Time</td></tr><tr><td>IX 142 </td><td>Dubai</td><td></td><td>17:50<br>03/01/17</td><td>T3 </td><td> 17:50<br>03/01/17</td><td>On Time</td></tr><tr><td>AI 244 </td><td>Kabul</td><td></td><td>17:50<br>03/01/17</td><td>T3 </td><td> 17:50<br>03/01/17</td><td>Expected</td></tr><tr><td>AI 301 </td><td>Sydney</td><td></td><td>17:50<br>03/01/17</td><td>T3 </td><td> 17:50<br>03/01/17</td><td>On Time</td></tr><tr><td>SV 758 </td><td>Jeddah</td><td></td><td>18:15<br>03/01/17</td><td>T3 </td><td> 18:15<br>03/01/17</td><td>On Time</td></tr><tr><td>KE 481 </td><td>Seoul-Incheon</td><td></td><td>18:20<br>03/01/17</td><td>T3 </td><td> 18:07<br>03/01/17</td><td>Expected</td></tr><tr><td>JL 749 </td><td>Tokyo</td><td></td><td>18:20<br>03/01/17</td><td>T3 </td><td> 18:00<br>03/01/17</td><td>Expected</td></tr><tr><td>RA 217 </td><td>Kathmandu</td><td></td><td>18:40<br>03/01/17</td><td>T3 </td><td> 18:40<br>03/01/17</td><td>On Time</td></tr><tr><td>OZ 767 </td><td>Seoul-Incheon</td><td></td><td>18:50<br>03/01/17</td><td>T3 </td><td> 20:23<br>03/01/17</td><td>Delayed</td></tr><tr><td>AI 144 </td><td>Newark</td><td>Mumbai</td><td>19:10<br>03/01/17</td><td>T3 </td><td> 19:10<br>03/01/17</td><td>On Time</td></tr><tr><td>9W 545 </td><td>Dubai</td><td></td><td>19:20<br>03/01/17</td><td>T3 </td><td> 19:20<br>03/01/17</td><td>On Time</td></tr><tr><td>EY 224 </td><td>Abu Dhabi</td><td></td><td>19:30<br>03/01/17</td><td>T3 </td><td> 19:30<br>03/01/17</td><td>On Time</td></tr><tr><td>MU 563 </td><td>Beijing</td><td>Shanghai</td><td>19:40<br>03/01/17</td><td>T3 </td><td> 19:40<br>03/01/17</td><td>On Time</td></tr><tr><td>SQ 406 </td><td>Singapore</td><td></td><td>19:45<br>03/01/17</td><td>T3 </td><td> 19:45<br>03/01/17</td><td>On Time</td></tr><tr><td>EK 514 </td><td>Dubai</td><td></td><td>19:55<br>03/01/17</td><td>T3 </td><td> 19:55<br>03/01/17</td><td>On Time</td></tr><tr><td>MH 190 </td><td>Kuala Lumpur</td><td></td><td>20:05<br>03/01/17</td><td>T3 </td><td> 20:05<br>03/01/17</td><td>On Time</td></tr><tr><td>AI 115 </td><td>Amritsar</td><td></td><td>20:10<br>03/01/17</td><td>T3 </td><td> 20:10<br>03/01/17</td><td>On Time</td></tr><tr><td>AI 011 </td><td>Ahmedabad</td><td></td><td>20:20<br>03/01/17</td><td>T3 </td><td> 20:20<br>03/01/17</td><td>On Time</td></tr><tr><td>GF 134 </td><td>Bahrain</td><td></td><td>20:30<br>03/01/17</td><td>T3 </td><td> 20:30<br>03/01/17</td><td>On Time</td></tr><tr><td>OD 205 </td><td>Kuala Lumpur</td><td></td><td>20:30<br>03/01/17</td><td>T3 </td><td> 20:30<br>03/01/17</td><td>On Time</td></tr><tr><td>CX 695 </td><td>Hong Kong</td><td></td><td>21:10<br>03/01/17</td><td>T3 </td><td> 21:10<br>03/01/17</td><td>On Time</td></tr><tr><td>UA 082 </td><td>Newark</td><td></td><td>21:20<br>03/01/17</td><td>T3 </td><td> 21:13<br>03/01/17</td><td>Expected</td></tr><tr><td>AC 070 </td><td>Toronto</td><td></td><td>21:40<br>03/01/17</td><td>T3 </td><td> 21:40<br>03/01/17</td><td>On Time</td></tr><tr><td>AI 315 </td><td>Kansai Intl</td><td>Hong Kong</td><td>21:55<br>03/01/17</td><td>T3 </td><td> 21:55<br>03/01/17</td><td>On Time</td></tr><tr><td>AI 310 </td><td>Mumbai</td><td></td><td>22:05<br>03/01/17</td><td>T3 </td><td> 22:05<br>03/01/17</td><td>On Time</td></tr><tr><td>AI 162 </td><td>London Heathrow</td><td></td><td>22:25<br>03/01/17</td><td>T3 </td><td> 22:25<br>03/01/17</td><td>On Time</td></tr><tr><td>AI 264 </td><td>Male</td><td>Trivandrum</td><td>22:35<br>03/01/17</td><td>T3 </td><td> 22:35<br>03/01/17</td><td>On Time</td></tr><tr><td>6E 024 </td><td>Dubai</td><td></td><td>22:40<br>03/01/17</td><td>T3 </td><td> 22:40<br>03/01/17</td><td>On Time</td></tr><tr><td>CZ 359 </td><td>Guangzhou</td><td></td><td>22:45<br>03/01/17</td><td>T3 </td><td> 22:45<br>03/01/17</td><td>On Time</td></tr><tr><td>9W 017 </td><td>Singapore</td><td></td><td>23:00<br>03/01/17</td><td>T3 </td><td> 23:00<br>03/01/17</td><td>On Time</td></tr><tr><td>TG 315 </td><td>Bangkok</td><td></td><td>23:00<br>03/01/17</td><td>T3 </td><td> 23:00<br>03/01/17</td><td>On Time</td></tr><tr><td>AI 127 </td><td>Hyderabad </td><td></td><td>23:10<br>03/01/17</td><td>T3 </td><td> 23:10<br>03/01/17</td><td>On Time</td></tr><tr><td>AF 226 </td><td>Paris</td><td></td><td>23:15<br>03/01/17</td><td>T3 </td><td> 23:15<br>03/01/17</td><td>On Time</td></tr><tr><td>AI 101 </td><td>Mumbai</td><td></td><td>23:15<br>03/01/17</td><td>T3 </td><td> 23:15<br>03/01/17</td><td>On Time</td></tr><tr><td>AI 047 </td><td>Kochi</td><td></td><td>23:20<br>03/01/17</td><td>T3 </td><td> 23:20<br>03/01/17</td><td>On Time</td></tr><tr><td>9W 063 </td><td>Bangkok</td><td></td><td>23:25<br>03/01/17</td><td>T3 </td><td> 23:25<br>03/01/17</td><td>On Time</td></tr><tr><td>AI 014 </td><td>Ahmedabad</td><td></td><td>23:40<br>03/01/17</td><td>T3 </td><td> 23:40<br>03/01/17</td><td>On Time</td></tr><tr><td>SU 234 </td><td>Moscow</td><td></td><td>23:45<br>03/01/17</td><td>T3 </td><td> 23:45<br>03/01/17</td><td>On Time</td></tr><tr><td>AI 043 </td><td>Chennai</td><td></td><td>23:55<br>03/01/17</td><td>T3 </td><td> 23:55<br>03/01/17</td><td>On Time</td></tr><tr><td>CX 697 </td><td>Hong Kong</td><td></td><td>23:55<br>03/01/17</td><td>T3 </td><td> 23:55<br>03/01/17</td><td>On Time</td></tr><tr><td>AI 173 </td><td>Bengaluru</td><td></td><td>23:55<br>03/01/17</td><td>T3 </td><td> 23:55<br>03/01/17</td><td>On Time</td></tr><tr><td>9W 233 </td><td>Toronto</td><td>Amsterdam</td><td>23:55<br>03/01/17</td><td>T3 </td><td> 23:55<br>03/01/17</td><td>On Time</td></tr><tr><td>NH 827 </td><td>Tokyo</td><td></td><td>00:05<br>04/01/17</td><td>T3 </td><td> 00:05<br>04/01/17</td><td>On Time</td></tr><tr><td>LH 762 </td><td>Munich</td><td></td><td>00:10<br>04/01/17</td><td>T3 </td><td> 00:10<br>04/01/17</td><td>On Time</td></tr><tr><td>LX 146 </td><td>Zurich</td><td></td><td>00:45<br>04/01/17</td><td>T3 </td><td> 00:45<br>04/01/17</td><td>On Time</td></tr><tr><td>ET 688 </td><td>Addis Ababa</td><td></td><td>00:50<br>04/01/17</td><td>T3 </td><td> 00:50<br>04/01/17</td><td>On Time</td></tr><tr><td>KL 871 </td><td>Amsterdam</td><td></td><td>01:00<br>04/01/17</td><td>T3 </td><td> 01:00<br>04/01/17</td><td>On Time</td></tr><tr><td>BA 143 </td><td>London Heathrow</td><td></td><td>01:20<br>04/01/17</td><td>T3 </td><td> 01:20<br>04/01/17</td><td>On Time</td></tr><tr><td>LH 760 </td><td>Frankfurt</td><td></td><td>01:30<br>04/01/17</td><td>T3 </td><td> 01:30<br>04/01/17</td><td>On Time</td></tr><tr><td>QR 578 </td><td>Doha</td><td></td><td>01:55<br>04/01/17</td><td>T3 </td><td> 01:55<br>04/01/17</td><td>On Time</td></tr><tr><td>G9 463 </td><td>Sharjah</td><td></td><td>02:10<br>04/01/17</td><td>T3 </td><td> 02:10<br>04/01/17</td><td>On Time</td></tr><tr><td>TG 331 </td><td>Bangkok</td><td></td><td>02:20<br>04/01/17</td><td>T3 </td><td> 02:20<br>04/01/17</td><td>On Time</td></tr><tr><td>IA 445 </td><td>Baghdad</td><td>London Stansted</td><td>02:25<br>04/01/17</td><td>T3 </td><td> 02:25<br>04/01/17</td><td>On Time</td></tr><tr><td>EY 218 </td><td>Abu Dhabi</td><td></td><td>02:35<br>04/01/17</td><td>T3 </td><td> 02:35<br>04/01/17</td><td>On Time</td></tr><tr><td>AI 349 </td><td>Shanghai</td><td></td><td>02:45<br>04/01/17</td><td>T3 </td><td> 02:45<br>04/01/17</td><td>On Time</td></tr><tr><td>6E 022 </td><td>Dubai</td><td></td><td>03:10<br>04/01/17</td><td>T3 </td><td> 03:10<br>04/01/17</td><td>On Time</td></tr><tr><td>9W 581 </td><td>Abu Dhabi</td><td></td><td>03:25<br>04/01/17</td><td>T3 </td><td> 03:25<br>04/01/17</td><td>On Time</td></tr><tr><td>9W 547 </td><td>Dubai</td><td></td><td>03:40<br>04/01/17</td><td>T3 </td><td> 03:40<br>04/01/17</td><td>On Time</td></tr><tr><td>AI 974 </td><td>Muscat</td><td></td><td>03:45<br>04/01/17</td><td>T3 </td><td> 03:45<br>04/01/17</td><td>On Time</td></tr><tr><td>SG 012 </td><td>Dubai</td><td></td><td>04:10<br>04/01/17</td><td>T3 </td><td> 04:10<br>04/01/17</td><td>On Time</td></tr><tr><td>SU 232 </td><td>Moscow</td><td></td><td>04:20<br>04/01/17</td><td>T3 </td><td> 04:20<br>04/01/17</td><td>On Time</td></tr><tr><td>GF 130 </td><td>Bahrain</td><td></td><td>04:40<br>04/01/17</td><td>T3 </td><td> 04:40<br>04/01/17</td><td>On Time</td></tr><tr><td>AI 996 </td><td>Dubai</td><td></td><td>04:45<br>04/01/17</td><td>T3 </td><td> 04:45<br>04/01/17</td><td>On Time</td></tr><tr><td>AI 940 </td><td>Bahrain</td><td></td><td>05:00<br>04/01/17</td><td>T3 </td><td> 05:00<br>04/01/17</td><td>On Time</td></tr><tr><td>KU 381 </td><td>Kuwait</td><td></td><td>05:05<br>04/01/17</td><td>T3 </td><td> 05:05<br>04/01/17</td><td>On Time</td></tr><tr><td>TK 716 </td><td>Istanbul</td><td></td><td>05:15<br>04/01/17</td><td>T3 </td><td> 05:15<br>04/01/17</td><td>On Time</td></tr><tr><td>9W 567 </td><td>Dammam</td><td></td><td>05:55<br>04/01/17</td><td>T3 </td><td> 05:55<br>04/01/17</td><td>On Time</td></tr><tr><td>9W 597 </td><td>Muscat</td><td></td><td>06:20<br>04/01/17</td><td>T3 </td><td> 06:20<br>04/01/17</td><td>On Time</td></tr><tr><td>T5 531 </td><td>Ashgabat</td><td></td><td>06:35<br>04/01/17</td><td>T3 </td><td> 06:35<br>04/01/17</td><td>On Time</td></tr><tr><td>AY 021 </td><td>Helsinki</td><td></td><td>06:35<br>04/01/17</td><td>T3 </td><td> 06:35<br>04/01/17</td><td>On Time</td></tr><tr><td>AI 138 </td><td>Milano MXP</td><td></td><td>07:45<br>04/01/17</td><td>T3 </td><td> 07:45<br>04/01/17</td><td>On Time</td></tr><tr><td>EY 228 </td><td>Abu Dhabi</td><td></td><td>07:55<br>04/01/17</td><td>T3 </td><td> 07:58<br>04/01/17</td><td>Expected</td></tr><tr><td>ET 686 </td><td>Addis Ababa</td><td></td><td>08:05<br>04/01/17</td><td>T3 </td><td> 08:05<br>04/01/17</td><td>On Time</td></tr><tr><td>QR 570 </td><td>Doha</td><td></td><td>08:25<br>04/01/17</td><td>T3 </td><td> 08:25<br>04/01/17</td><td>On Time</td></tr><tr><td>9W 201 </td><td>Doha</td><td></td><td>08:35<br>04/01/17</td><td>T3 </td><td> 08:35<br>04/01/17</td><td>On Time</td></tr><tr><td>AI 018 </td><td>Ahmedabad</td><td></td><td>08:50<br>04/01/17</td><td>T3 </td><td> 08:50<br>04/01/17</td><td>On Time</td></tr><tr><td>FZ 431 </td><td>Dubai</td><td></td><td>08:50<br>04/01/17</td><td>T3 </td><td> 08:50<br>04/01/17</td><td>On Time</td></tr><tr><td>EK 510 </td><td>Dubai</td><td></td><td>09:10<br>04/01/17</td><td>T3 </td><td> 09:10<br>04/01/17</td><td>On Time</td></tr><tr><td>WY 241 </td><td>Muscat</td><td></td><td>09:25<br>04/01/17</td><td>T3 </td><td> 09:25<br>04/01/17</td><td>On Time</td></tr><tr><td>AI 120 </td><td>Frankfurt</td><td></td><td>09:35<br>04/01/17</td><td>T3 </td><td> 09:35<br>04/01/17</td><td>On Time</td></tr><tr><td>RA 205 </td><td>Kathmandu</td><td></td><td>09:40<br>04/01/17</td><td>T3 </td><td> 09:40<br>04/01/17</td><td>On Time</td></tr><tr><td>AI 114 </td><td>Birmingham</td><td></td><td>09:55<br>04/01/17</td><td>T3 </td><td> 09:55<br>04/01/17</td><td>On Time</td></tr><tr><td>AI 142 </td><td>Paris</td><td></td><td>10:00<br>04/01/17</td><td>T3 </td><td> 10:00<br>04/01/17</td><td>On Time</td></tr><tr><td>AI 914 </td><td>Dammam</td><td></td><td>10:05<br>04/01/17</td><td>T3 </td><td> 10:05<br>04/01/17</td><td>On Time</td></tr><tr><td>9W 263 </td><td>Kathmandu</td><td></td><td>10:05<br>04/01/17</td><td>T3 </td><td> 10:05<br>04/01/17</td><td>On Time</td></tr><tr><td>BA 257 </td><td>London Heathrow</td><td></td><td>10:25<br>04/01/17</td><td>T3 </td><td> 10:25<br>04/01/17</td><td>On Time</td></tr><tr><td>6E 048 </td><td>Dubai</td><td></td><td>10:35<br>04/01/17</td><td>T3 </td><td> 10:35<br>04/01/17</td><td>On Time</td></tr><tr><td>9W 587 </td><td>Dubai</td><td></td><td>10:35<br>04/01/17</td><td>T3 </td><td> 10:35<br>04/01/17</td><td>On Time</td></tr><tr><td>EK 512 </td><td>Dubai</td><td></td><td>10:50<br>04/01/17</td><td>T3 </td><td> 10:50<br>04/01/17</td><td>On Time</td></tr><tr><td>9W 121 </td><td>London Heathrow</td><td></td><td>10:50<br>04/01/17</td><td>T3 </td><td> 10:50<br>04/01/17</td><td>On Time</td></tr></tbody></table></div>

3
Contributors
4
Replies
15
Views
8 Months
Discussion Span
Last Post by pty
0

So that's your problem, now how about showing us how you've gone about solving it and where you have got stuck? Or were you hoping someone else would just do this for you?

0

Thank you for your reply,I am not getting from where to start displaying so first ,thead tag text i am trying to display in the datagrid as table names.

0

like this i hv written code

  strindex1 = result.IndexOf("<thead ")
  strindex2 = result.IndexOf("</thead>")
  Dim tableChar As String
    Dim trchar As String
    Dim trcharst As Integer
    Dim trcharend As Integer
    Dim tdindexstart As Integer
    Dim tdindexend As Integer = 0
    Dim tdchar As String
    Dim tSpan As Integer

    Dim rows As Integer = 0
    'for one page decoding
    tableChar = result.Substring(strindex1, strindex2 - strindex1)
    strindex1 = tableChar.IndexOf("<tbody ")
    strindex2 = tableChar.IndexOf("</tbody>")
    tableChar = tableChar.Substring(strindex1, strindex2 - strindex1)

    For loopvar = strindex1 To strindex2 Step 1
        trcharst = tableChar.IndexOf("<tr ")
        trcharend = tableChar.IndexOf("</tr>")
        If trcharst <> -1 Then
            trchar = tableChar.Substring(trcharst, trcharend - trcharst)
            Dim rowId As Integer = dg.Rows.Add()
            Dim TextLines() As String = trchar.Split(Environment.NewLine.ToCharArray, System.StringSplitOptions.RemoveEmptyEntries)
            If TextLines.Count > 0 Then
                Dim rowvar As Integer = 0
                If tdindexstart <> -1 Then
                    tSpan = trchar.IndexOf("arr_dep_table_body")
                    If tSpan <> -1 Then
                        Dim Count As Integer = 0
                        For Each Str As String In TextLines
                            Count = Count + 1
                            If Str.Contains("arr_dep_table_body") Then
                                Dim index As Integer = Str.IndexOf("arr_dep_table_body")
                                tdchar = TextLines(Count).Trim()
                                Exit For
                            End If
                        Next
                        dg.Rows(rows).Cells(rowvar).Value = tdchar.ToString
0

I suggest you use the HTML Agility Pack rather than attempting to use loops, counters and .IndexOf. It will allow you to use XPath which will be more efficient and require less complex code to achieve. Or, if you're doing this as a one off, copy it into a .csv file and use the standard tools.

Also, pasting a wall of unformatted HTML isn't going to help anyone. Either link to a gist or use the 'Code' button above to make it somewhat readable. If it still looks like a wall of text, use html tidy first.

Edited by pty: Adding posting advice

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.