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

New Post: DocumentNode.Descendants comes back with null values

$
0
0
I am trying to scrape a website for a Windows 8 store app and every resource I find says to run a linq statement off of DocumentNode.Descendants("tagName");

However, no matter how I try it I get back null values. For example:

calling:
doc.DocumentNode.Descendants("div")

results in:
{HtmlAgilityPack.HtmlNode.Descendants}
name: null
System.Collections.Generic.IEnumerator<HtmlAgilityPack.HtmlNode>.Current: null
System.Collections.IEnumerator.Current: null
However, the call was successful and the text attribute of doc shows the HTML for the page I am calling. Any idea why I can't get values out of the Descendants function?

Viewing all articles
Browse latest Browse all 450

Trending Articles



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