title: Correct way to get child nodes using HtmlAgilityPack in C#
body: <p>I'm trying to scrape data with HtmlAgilityPack. However it is not working as I expected. Each web page I'm scraping contains a list of items, and each item contains first name and email.</p>
  
  <pre><code>&lt;div class="item"&gt;
      &lt;div&gt;...
      &lt;span class="first-name"&gt;&lt;/span&gt;&lt;/div&gt;
      &lt;div&gt;...
      &lt;span class="email"&gt;&lt;/span&gt;&lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>My thought was to extract all div nodes from each page, then retrieve first name and email from each node. I thought this would be working:</p>
  
  <pre><code>var div = rootDocument.DocumentNode.SelectNodes("//div[@class='item']");
  var firstNames = div.SelectNodes("//span[@class='first-name']//text()");
  var emails = div.SelectNodes("//span[@class='email-address']//a//text()");
  </code></pre>
  
  <p>However, firstNames and emails seemed to retrieve all nodes in the page, not the div. I only want to get child nodes belong to one div. What is the correct way to do this?</p>