Html Agility Pack Parse Table
I have a table like this:
Name | AgeSolution 1:You can grab the cell content from within your outer foreach loop:
Also I'd recommend trimming and 'de-entitizing the inner text to ensure it is clean:
In your source the cells for [Age: 78] and [Age: 92] have a Solution 2:This is my solution. Please notice your HTML is not well formatted because you have
And this is the c# Code:
Screenshot: Edit: I must add that if you are going to use the More info: http://www.w3schools.com/tags/tag_thead.asp |
---|
Post a Comment for "Html Agility Pack Parse Table"