Results 1 to 3 of 3

Thread: [RESOLVED] Parsing Info from HTML tables

Threaded View

  1. #1

    Thread Starter
    Junior Member simonwinsor's Avatar
    Join Date
    Apr 2008
    Location
    USA
    Posts
    22

    Resolved [RESOLVED] Parsing Info from HTML tables

    Hey vBuddies,

    I have used Pasing before too but not on such a complex scale.
    Html is already extracted from the Website to > "C:\score.txt"
    I wana get the Last Level number (4) and last Scored (301).
    and Show them each in TextBox.

    Please Guide me how do i go about it.

    Here are the HTML codes and Below attached is the Picture how the table looks.

    HTML Code:
    <p class="text"><strong>Game Score :</strong></p>
    
    <table width="50%" border="1" cellspacing="1" cellpadding="2">
      <tr class="text">
        <td width="144" height="20" ><div align="center"><strong>No.</strong></div></td>
        <td width="204" ><div align="center"><strong>To Score</strong></div></td>
        <td width="204" ><div align="center"><strong> Scored</strong></div></td>
        <td width="204" ><div align="center"><strong>Percentage completed</strong></div></td>
        <td width="205" ><div align="center"><strong>Status</strong></div></td>
      </tr>
      <tr class="text">
        <td height="17" ><div align="center">1</div></td>
        <td height="17" ><div align="center">100</div></td>
        <td align="center" valign="middle" >100</td>
        <td align="center" valign="middle" >100.00 %</td>
        <td align="center" valign="middle" > Yes </td>
      </tr>
      <tr class="text">
        <td height="17" ><div align="center">2</div></td>
        <td height="17" ><div align="center">150</div></td>
        <td align="center" valign="middle" >150</td>
        <td align="center" valign="middle" >100.00 %</td>
        <td align="center" valign="middle" > Yes </td>
      </tr>
      <tr class="text">
        <td height="17" ><div align="center">3</div></td>
        <td height="17" ><div align="center">400</div></td>
        <td align="center" valign="middle" >400</td>
        <td align="center" valign="middle" >100.00 %</td>
        <td align="center" valign="middle" > Yes </td>
      </tr>
      <tr class="text">
        <td height="17" ><div align="center">4</div></td>
        <td height="17" ><div align="center">430</div></td>
        <td align="center" valign="middle" >301</td>
        <td align="center" valign="middle" >70.00 %</td>
        <td align="center" valign="middle" > No </td>
      </tr>
    </table>
    Attached Images Attached Images  

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width