I want to get the html of a web page. Then with this html there are two elements who's xpath I have that I want to read. I have little to zero knowledge on this topic.
When searching I keep seeing examples however they load the url and put the html into a string. However I believe since I have the two xpath's it would be better to download the html of the web page as a html document rather than a string or am I wrong?
using (WebClient client = new WebClient()) {
string s = client.DownloadString(url);
}
So how do I download the html of a webpage to a html document that I can search?