HTML Data Extract In vb.net

Topics: Developer Forum, Project Management Forum, User Forum
Jul 18, 2011 at 5:55 AM

how could i get value from this source code

here my source code. here have STRONG NAME,TABLE,

ABBANK AND HIS BUY/SELL PRICE & VOLUME

4 Column & 10 Rows. i want every single data.

 

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<META http-equiv="refresh" content="40">
</head>

<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>Please click on the button to updates</td>
</tr>
  <tr>
<td> <INPUT TYPE="BUTTON" VALUE="ABBANK" onClick="showHint(this.value)"> </td>
</tr>
<tr>
<td><div align="center">Instrument : <strong>ABBANK</strong></div></td>
</tr>
<tr>
    <td>&nbsp;</td>
</tr>
<tr>
<td><table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="2%" valign="top"><table width="96%" border="0" align="left" cellpadding="0" cellspacing="0">
<tr>
<td>&nbsp;</td>
</tr>
          <tr>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
        </table></td>
<td width="73%" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="50%" valign="top"><table width="100%" border="0" cellpadding="1" cellspacing="1" bgcolor="#E8FFFB">
<tr bgcolor="#E8FFFB">
<td height="34%" colspan="3"><div align="center"><strong>Buy</strong></div></td>
</tr>
<tr>
                  <td width="29%" bgcolor="#FFF4D5"><div align="center">Buy Price </div></td>
<td width="32%" bgcolor="#D0DFDF"><div align="center">Buy Volume </div></td>
<td width="39%" height="34%" bgcolor="#FBFECD"><div align="center">Buy DVP Volume </div></td>
</tr>
<tr>
<td bgcolor="#FFF4D5"><div align="center">886.00</div></td>
<td bgcolor="#D0DFDF"><div align="center">55</div></td>
                  <td bgcolor="#FBFECD"><div align="center">0</div></td>
</tr>
<tr>
<td bgcolor="#FFF4D5"><div align="center">885.00</div></td>
<td bgcolor="#D0DFDF"><div align="center">110</div></td>
<td bgcolor="#FBFECD"><div align="center">0</div></td>
</tr>
                                <tr>
<td bgcolor="#FFF4D5"><div align="center">881.00</div></td>
<td bgcolor="#D0DFDF"><div align="center">35</div></td>
<td bgcolor="#FBFECD"><div align="center">0</div></td>
</tr>
<tr>
<td bgcolor="#FFF4D5"><div align="center">880.00</div></td>
                  <td bgcolor="#D0DFDF"><div align="center">215</div></td>
<td bgcolor="#FBFECD"><div align="center">0</div></td>
</tr>
<tr>
<td bgcolor="#FFF4D5"><div align="center">879.00</div></td>
<td bgcolor="#D0DFDF"><div align="center">175</div></td>
<td bgcolor="#FBFECD"><div align="center">0</div></td>
                </tr>
<tr>
<td bgcolor="#FFF4D5"><div align="center">878.25</div></td>
<td bgcolor="#D0DFDF"><div align="center">30</div></td>
<td bgcolor="#FBFECD"><div align="center">0</div></td>
</tr>
<tr>
                  <td bgcolor="#FFF4D5"><div align="center">878.00</div></td>
<td bgcolor="#D0DFDF"><div align="center">335</div></td>
<td bgcolor="#FBFECD"><div align="center">0</div></td>
</tr>
<tr>
<td bgcolor="#FFF4D5"><div align="center">877.50</div></td>
<td bgcolor="#D0DFDF"><div align="center">120</div></td>
                  <td bgcolor="#FBFECD"><div align="center">0</div></td>
</tr>
<tr>
<td bgcolor="#FFF4D5"><div align="center">877.25</div></td>
<td bgcolor="#D0DFDF"><div align="center">100</div></td>
<td bgcolor="#FBFECD"><div align="center">0</div></td>
</tr>
                                <tr>
<td bgcolor="#FFF4D5"><div align="center">877.00</div></td>
<td bgcolor="#D0DFDF"><div align="center">160</div></td>
<td bgcolor="#FBFECD"><div align="center">0</div></td>
</tr>
</table></td>
<td valign="top" bgcolor="#BFEFFF"><table width="100%" border="0" cellspacing="1" cellpadding="1">
                <tr>
<td height="34%" colspan="3" bgcolor="#BFEFFF"><div align="center"><strong>Sell</strong></div></td>
</tr>
<tr>
<td width="30%" bgcolor="#FFF4D5"><div align="center">Sell Price </div></td>
<td width="32%" bgcolor="#D0DFDF"><div align="center">Sell Volume </div></td>
<td width="38%" height="34%" bgcolor="#FBFECD"><div align="center">Sell VP Volume </div></td>
                </tr>
<tr>
<td bgcolor="#FFF4D5"><div align="center">887.00</div></td>
<td bgcolor="#D0DFDF"><div align="center">15</div></td>
<td bgcolor="#FBFECD"><div align="center">0</div></td>
</tr>
<tr>
                  <td bgcolor="#FFF4D5"><div align="center">887.50</div></td>
<td bgcolor="#D0DFDF"><div align="center">140</div></td>
<td bgcolor="#FBFECD"><div align="center">0</div></td>
</tr>
<tr>
<td bgcolor="#FFF4D5"><div align="center">888.00</div></td>
<td bgcolor="#D0DFDF"><div align="center">380</div></td>
                  <td bgcolor="#FBFECD"><div align="center">0</div></td>
</tr>
<tr>
<td bgcolor="#FFF4D5"><div align="center">889.00</div></td>
<td bgcolor="#D0DFDF"><div align="center">155</div></td>
<td bgcolor="#FBFECD"><div align="center">0</div></td>
</tr>
                                <tr>
<td bgcolor="#FFF4D5"><div align="center">889.50</div></td>
<td bgcolor="#D0DFDF"><div align="center">10</div></td>
<td bgcolor="#FBFECD"><div align="center">0</div></td>
</tr>
<tr>
<td bgcolor="#FFF4D5"><div align="center">889.75</div></td>
                  <td bgcolor="#D0DFDF"><div align="center">105</div></td>
<td bgcolor="#FBFECD"><div align="center">0</div></td>
</tr>
<tr>
<td bgcolor="#FFF4D5"><div align="center">890.00</div></td>
<td bgcolor="#D0DFDF"><div align="center">2355</div></td>
<td bgcolor="#FBFECD"><div align="center">0</div></td>
                </tr>
<tr>
<td bgcolor="#FFF4D5"><div align="center">891.00</div></td>
<td bgcolor="#D0DFDF"><div align="center">65</div></td>
<td bgcolor="#FBFECD"><div align="center">0</div></td>
</tr>
<tr>
                  <td bgcolor="#FFF4D5"><div align="center">892.00</div></td>
<td bgcolor="#D0DFDF"><div align="center">440</div></td>
<td bgcolor="#FBFECD"><div align="center">0</div></td>
</tr>
<tr>
<td bgcolor="#FFF4D5"><div align="center">893.00</div></td>
<td bgcolor="#D0DFDF"><div align="center">100</div></td>
                  <td bgcolor="#FBFECD"><div align="center">0</div></td>
</tr>
</table></td>
</tr>
</table></td>
<td width="25%" valign="top" bgcolor="#FFF7EA"><table width="96%" border="0" align="right" cellpadding="0" cellspacing="0">
<tr>
<td>Last Trade </td>
          </tr>
<tr>
<td>Price : &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;887<br>
Quantity : 77680</td>
</tr>
<tr>
<td>&nbsp;</td>
          </tr>
<tr>
<td>Price Statistics </td>
</tr>
<tr>
<td><table width="100%" border="0" cellspacing="1" cellpadding="1">
<tr>
<td width="51%">Open Price </td>
                <td width="49%">: &nbsp;&nbsp;883.5</td>
</tr>
<tr>
<td>Close Price </td>
<td>: &nbsp;&nbsp;883</td>
</tr>
              <tr>
<td>Yesterday Close </td>
<td>: &nbsp;&nbsp;891.5</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
              </tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
    </table></td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
</table>
</body>
</html>