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
How about:
var el = (HtmlElement)doc.DocumentNode .SelectSingleNode("//ol"); if(el!=null) { string s = el.OuterHtml; }
(untested, from memory)