Reading HTML table data / html tag
Posted
by user348038
on Stack Overflow
See other posts from Stack Overflow
or by user348038
Published on 2010-05-22T22:40:45Z
Indexed on
2010/05/22
22:50 UTC
Read the original article
Hit count: 427
I have some 50 pages of html which have around 100-plus rows of data in each, with all sort of CSS style, I want to read the html file and just get the data, like Name, Age, Class, Teacher. and store it in Database, but I am not able to read the html tags
e.g space i kept to display it here
<table class="table_100">
<tr>
<td class="col_1">
<span class="txt_student">Gauri Singh</span><br>
<span class="txt_bold">13</span><br>
<span class="txt_bold">VIII</span><br>
</td>
<td class="col_2">
<span class="txt_teacher">Praveen M</span><br>
<span class="txt_bold">3494</span><br>
<span class="txt_bold">3Star</span><br>
</td>
<td class="col_3">
</td>
</tr>
</table>
© Stack Overflow or respective owner