html agility pack - Object reference error
<p>I've been playing around with the htmlagiltypack for a few days, and I'm slowly starting to understand the logic behind scrapping data, however, I've run into an issue where I can't seem to see what's wrong with the code.</p>

<p>I'm trying to glean some data between a span tag, which has an attribute called itemprop, that has a value of 'genre'. I want to check one particular div to find all instances of this data.Here is my attempt:</p>

<pre><code> foreach(var item in document.DocumentNode.SelectNodes(
     "//div[@class='infobar']/a/span[itemprop='genre']"))
 {
     newFilm.FilmGenre.Add(item.InnerHtml);
 }
</code></pre>

<p>I'm just not sure what i'm doing wrong :(</p>
