1
<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\">

How can i load or parse this text as html then extract it data using HAP? Thanks

skaffman
  • 398,947
  • 96
  • 818
  • 769
QuachNguyen
  • 43
  • 1
  • 7

2 Answers2

1

Here you go:

string input; 
var htmlDocument = new HtmlDocument();
htmlDocument.LoadHtml(input); or htmlDocument.LoadHtml(@input);
Dragos Durlut
  • 8,018
  • 10
  • 47
  • 62
0

This answer may help get you started.

Have you got the extra backslashes in there by mistake, or is that how the source HTML document actually looks?

Community
  • 1
  • 1
Darth Continent
  • 2,319
  • 3
  • 25
  • 41