The text of this article is not in this database — only its details are. Read it on the old site: XPath Using HtmlAgilityPack and WebClient
4 Comments
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment.
The text of this article is not in this database — only its details are. Read it on the old site: XPath Using HtmlAgilityPack and WebClient
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment.
Ravi PrakashPosted May 30, 2017, 2:55 AM
Foreach (HtmlNode node in doc.DocumentNode.Descendants()) { if (node.Name != "#text" && node.Name != "#comment") { Console.WriteLine(node.Name + " " + node.GetAttributeValue("Id", true)); string strValue = node.InnerText; Console.WriteLine(strValue); } } I used this get all the node and id of the node.But I also need to get the x path of each node and also the I should get CSS and Name attribute if they are present. hope u may guide me.Thanks in advance
Gagan SikriPosted Jul 24, 2015, 9:23 AM
Good One :)
Dinesh BeniwalPosted Jun 26, 2012, 6:59 AM
Good Start Sachin.
Lajapathy ArunPosted Jun 26, 2012, 6:31 AM
nice one :)