Quantcast
Channel: htmlagilitypack Forum Rss Feed
Viewing all articles
Browse latest Browse all 655

New Post: having an error

$
0
0

It seems like you might not checking null before executing the above line

if (doc.DocumentNode.SelectNodes(@"//a[@href]" != null){

    foreach (HtmlNode link in doc.DocumentNode.SelectNodes(@"//a[@href]")){

   //your code goes here
}

}

please share some more code too if above does not work.

Please let me know in case of any concerns.


Viewing all articles
Browse latest Browse all 655

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>