title: C# with HTML AGILITY PACK cannot get value of div class
body: <p>i have to download some data from site but i cannot find proper way.
  This is class im interested of:</p>
  <pre><code>&lt;div class=&quot;flex-item text-primary&quot; data-toggle=&quot;tooltip&quot; title=&quot;&quot; data-original-title=&quot;wsgk@wsgk.com.pl&quot;&gt;
          &lt;a class=&quot;ajax-modal-link icon-envelope cursor-pointer  addax addax-cs_hl_email_submit_click&quot; data-count-hovers=&quot;&quot; data-hover-class-remove=&quot;addax addax-cs_hl_email_click_submit&quot; data-hover-class-add=&quot;addax addax-cs_hl_email_hover&quot; data-ga=&quot;l-email-modal&quot; data-type=&quot;p&quot; data-tracking-click=&quot;&quot; data-toggle=&quot;modal&quot; data-target=&quot;#mail-modal&quot; data-company-trade-id=&quot;3123&quot; data-company-id=&quot;120863029&quot; data-company-email=&quot;mail@mail.com&quot; data-company-name=&quot;Name&quot; data-ajax-modal-tracking-type=&quot;result&quot;&gt;
              email
          &lt;/a&gt;
      &lt;/div&gt;
  </code></pre>
  <p>THIS IS MY LOOP:</p>
  <pre><code>    foreach(var site in website)
      {
  
          var html = site.Value;
          var web = new HtmlWeb();
          var _html = web.Load(html); 
          var node = _html.DocumentNode.SelectNodes(&quot;//div[@class='flex-item text-primary']&quot;);
          foreach (var mail in node)
          {
            try
              {
                  Console.WriteLine(mail.Attributes[&quot;data-original-title&quot;].Value);
              }
           
  
          }
  
      }
  </code></pre>
  <p><strong>This is output from console:
  Object reference not set to an instance of an object.</strong></p>
  <p>It looks like this:
  <a href="https://i.stack.imgur.com/cT32x.png" rel="nofollow noreferrer">enter image description here</a>
  Could you please help me out?</p>
  <p>// UPDATE</p>
  <pre><code>&lt;div class=&quot;d-flex justify-content-between m-0 bottom-content&quot;&gt;
      &lt;div class=&quot;flex-item text-primary&quot;&gt;
          &lt;a class=&quot;icon-telephone  addax addax-cs_hl_phonenumber_click&quot; href=&quot;https://panoramafirm.pl/zachodniopomorskie,gryficki,trzebiatów,kwiatowa,3/pphu_agawa_inz_waldemar_fiolek-scinlt_aal.html&quot; data-count-hovers=&quot;&quot; data-hover-class-remove=&quot;addax addax-cs_hl_phonenumber_click&quot; data-hover-class-add=&quot;addax addax-cs_hl_phone_hover&quot; data-ga=&quot;l-phone&quot; data-toggle=&quot;tooltip&quot; title=&quot;&quot; data-tracking-click=&quot;https://panoramafirm.pl/tr4ck1ng.png?displayType=results&amp;amp;type=clickphone&amp;amp;sid=8f04e98ua6kmfmkr7fe1b26rth&amp;amp;lstPersistentId=120898648_611&amp;amp;page=4&quot; data-tracking-id=&quot;120898648_611&quot; data-type=&quot;p&quot; data-original-title=&quot;601 155 493&quot;&gt;
                     telefon
                  &lt;/a&gt;
      &lt;/div&gt;
      &lt;div class=&quot;flex-item text-primary&quot;&gt;
          &lt;a class=&quot;icon-website  text-secondary  addax addax-cs_hl_hit_homepagelink_click&quot; disabled=&quot;disabled&quot;&gt;
              www
          &lt;/a&gt;
      &lt;/div&gt;
  
      &lt;div class=&quot;flex-item text-primary&quot; data-toggle=&quot;tooltip&quot; title=&quot;&quot; data-original-title=&quot;agawa.fiolek@gmail.com&quot;&gt;
          &lt;a class=&quot;ajax-modal-link icon-envelope cursor-pointer  addax addax-cs_hl_email_submit_click&quot; data-count-hovers=&quot;&quot; data-hover-class-remove=&quot;addax addax-cs_hl_email_click_submit&quot; data-hover-class-add=&quot;addax addax-cs_hl_email_hover&quot; data-ga=&quot;l-email-modal&quot; data-type=&quot;p&quot; data-tracking-click=&quot;https://panoramafirm.pl/tr4ck1ng.png?displayType=results&amp;amp;type=clickemail&amp;amp;sid=8f04e98ua6kmfmkr7fe1b26rth&amp;amp;lstPersistentId=120898648_611&amp;amp;page=4&quot; data-toggle=&quot;modal&quot; data-target=&quot;#mail-modal&quot; data-company-trade-id=&quot;611&quot; data-company-id=&quot;120898648&quot; data-company-email=&quot;agawa.fiolek@gmail.com&quot; data-company-name=&quot;Pphu Agawa Inż Waldemar Fiołek&quot; data-ajax-modal-tracking-type=&quot;result&quot;&gt;
              email
          &lt;/a&gt;
      &lt;/div&gt;
              &lt;div class=&quot;flex-item text-primary&quot;&gt;
              &lt;a class=&quot;icon-check-point show-on-map
                                       cursor-pointer
                   addax addax-cs_hl_hit_company_footer_map&quot; data-lat=&quot;54.05219&quot; data-lon=&quot;15.28209&quot; data-tradeid=&quot;611&quot; data-companyid=&quot;120898648&quot; data-ga=&quot;l-map&quot; data-type=&quot;p&quot; data-tracking-click=&quot;https://panoramafirm.pl/tr4ck1ng.png?displayType=results&amp;amp;type=clickmap&amp;amp;sid=8f04e98ua6kmfmkr7fe1b26rth&amp;amp;lstPersistentId=120898648_611&amp;amp;page=4&quot;&gt;
                  mapa
          &lt;/a&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  </code></pre>
  <p>How i can skip 2 first divs and then pick third?</p>