2012-02-20 107 views
2

我有以下HTML:解析表中的HTML敏捷包WP7

<table cellspacing="8" cellpadding="6" border="1" style="color: Black; background-color: LightGoldenrodYellow; 
    width: 60%;" id="GridView2" rules="all"> 
    <tbody> 
     <tr style="color: White; background-color: #CF4B0A; font-weight: bold;"> 
      <th align="center" scope="col"> 
       Booked At 
      </th> 
      <th align="center" scope="col"> 
       Booked On 
      </th> 
      <th align="center" scope="col"> 
       Delivered At 
      </th> 
      <th align="center" scope="col"> 
       Delivered On 
      </th> 
      <th scope="col"> 
       Details 
      </th> 
     </tr> 
     <tr align="left" style="color: #333333; background-color: #FFFBA1; font-family: Arial; 
      font-size: Small;"> 
      <td align="center"> 
       Not Available 
      </td> 
      <td align="center"> 
       Not Available 
      </td> 
      <td align="center"> 
       DATA 
      </td> 
      <td align="center"> 
       12/01/2012 
      </td> 
      <td> 
       <a href="javascript:__doPostBack('GridView2$ctl02$LinkButton1','')" id="GridView2_ctl02_LinkButton1"> 
        Details</a> 
      </td> 
     </tr> 
    </tbody> 
</table> 

我想解析使用HTML敏捷包上面的表。我正在使用從Codeplex下載的WP7的HAP解決方案。 任何快速幫助將不勝感激。

+0

沒有足夠的信息能夠幫助你做到這一點。例如,你想從HTML中拉出什麼?你已經嘗試了什麼? – ZombieSheep 2012-02-20 09:48:16

回答

0

要解析HTML,請使用HAP的HtmlDocument.LoadHtml()函數並將其傳遞給實際字符串。這將爲您提供一個包含所有HTML對象的DOM。