2010-08-27 90 views
0
<table class="\"matches \"> 
<thead> 
    <tr class="\"sub-head\"> 
     <th class="\"day\"> 
      Day<\/th><th class="\"date\"> 
       Date<\/th><th class="\"team team-a\"> 
        Home team<\/th><th class="\"score-time\"> 
         Score\/Time<\/th><th class="\"team team-b\"> 
          Away team<\/th><th class="\"events-button button\"> 
           &nbsp;<\/th><th class="\"info-button button\"> 

如何加載或解析此文本爲html,然後使用HAP提取數據? 謝謝如何使用Html Agility Pack加載文本爲html

回答

0

This answer可能會幫助您開始。

你有錯誤的額外反斜槓,或者是源HTML文件實際上看起來如何?

0

在這裏你去:

string input; 
var htmlDocument = new HtmlDocument(); 
htmlDocument.LoadHtml(input); or htmlDocument.LoadHtml(@input); 
相關問題