How To Get The Contents Of A Html Element Using Htmlagilitypack In C#?
I want to get the contents of an ordered list from a HTML page using HTMLAgilityPack in C#, i have tried the following code but, this is not working can anyone help, i want to pass
Solution 1:
How about:
var el = (HtmlElement)doc.DocumentNode
.SelectSingleNode("//ol");
if(el!=null)
{
string s = el.OuterHtml;
}
(untested, from memory)
Post a Comment for "How To Get The Contents Of A Html Element Using Htmlagilitypack In C#?"