title: HtmlAgilityPack getting all value inside a <div>
body: <p>I'm trying to get values from a website. The values are inside a div, where's more div under that "main div" (if I can call it like this).
  What I want to, is to get those divs value thats inside the "main div".
  I tried with this code:</p>
  
  <pre><code> string url = "www.examplesite.com";
  
      HtmlWeb web = new HtmlWeb();
      HtmlAgilityPack.HtmlDocument doc = web.Load(url);
      HtmlNodeCollection collection = doc.DocumentNode.SelectNodes("//div[@id='plex_container']");
      foreach (HtmlNode node in collection)
      {
          string cptitle = node.SelectSingleNode(".//div[@id='pltexts']").InnerText;
          listBox1.Items.Add(cptitle);
      }
  </code></pre>
  
  <p>The website's structure (while in F12 running-time) looks like this:</p>
  
  <pre><code>    &lt;body onload="initialize()" id="dashboard"&gt;
  &lt;div id="header"&gt;...&lt;/div&gt;
       &lt;div id="dashboard_container"&gt;
           &lt;div id="comm" class="comm_expanded"&gt;
              &lt;div id="pl_header_tab"&gt;...&lt;/div&gt;
              &lt;div id="pltext_tab"&gt;...&lt;/div&gt;
              &lt;div id="plex_container"&gt;
                  &lt;div id="pl_status"&gt;&lt;/div&gt;
                  &lt;div id="pltexts"&gt;
                     &lt;div class="plext"&gt;...&lt;/div&gt; // &lt;-- Im trying to get these values
                     &lt;div class="plext"&gt;...&lt;/div&gt; // &lt;-- 
                     &lt;div class="plext"&gt;...&lt;/div&gt; // &lt;-- 
                     &lt;div class="plext"&gt;...&lt;/div&gt; // &lt;--
                     &lt;div class="plext"&gt;...&lt;/div&gt; // &lt;--
  </code></pre>
  
  <p>I'm getting "Object reference not set to an instance of an object" error for the foreach...</p>