Click here to Skip to main content
15,922,315 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I am going to give HtmlAgilityPack a shot to see how well I can do in figuring out this program.

I am trying to parse a webpage for some values, but when looking at the source of the page its so jumbled you cant make sense of anything. I read somewhere that if you use chrome to browse to the page and you select InspectElement you will get a direct display of the source that you clicked on. I also noticed that if you click on copy Xpath you will have a path to the node.

My question is can you use this path to paste into agility? I am trying to learn how to use this so the easier the better.


Thanks...
Posted

1 solution

Hi,
yes, you can use XPath expression generated by Chrome.

Check this SO example[^] as an example, how to get single node by XPath.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900