Hi theadmin,
The webpage can be complex. But I am assuming, you are interested in getting the details of all the
<book></book>
nodes under
<bookstore></bookstore>
node from the complex web page. You can achieve what you need with little customization of the code I already shared. Here is how you can do it (assuming you have the Listview).
HtmlNodeCollection bookStore = html.DocumentNode.SelectNodes("//bookstore");
HtmlNodeCollection books = bookStore[0].SelectNodes("//book");
foreach (HtmlNode book in books)
{
Listview.Text = book.ChildNodes["title"].InnerText;
Listview.Subitems.Add(book.ChildNodes["price"].InnerText);
Listview.Subitems.Add(book.ChildNodes["available"].InnerText);
}
Hope this helps.