title: Getting the value of the 'href' inside of a div in HTMLAgilityPack in C#
body: <p>I am trying to grab the value of a "href". The code is something like this:</p>
  
  <pre><code>          &lt;div class="s_newsbox" style="font-size:12px; vertical-align:middle; overflow: hidden; float:left; margin:10px; margin-bottom:15px; height: 270px; width:280px; border-radius:6px; position:relative; text-align:center; padding:0px"&gt;
              &lt;div style="background-color:#292929; background-color:rgba(0,0,0,0.8); padding:5px; padding-left:2px; padding-right:10px; width:100%; position:absolute; top:0; left:0;"&gt;&lt;b&gt;Samsung nx30 + zoom kit 18/55&lt;/b&gt;
              &lt;/div&gt;
              &lt;a href="vendo.php?t=1395911"&gt;
                &lt;img style="width:100%; height:100%" src="http://img1.juzaphoto.com/shared_files/uploads_mercatino/sell_1395911_small.jpg" alt=""&gt;
                &lt;br&gt;&lt;/a&gt;
              &lt;div style="line-height:150%; background-color:#292929; background-color:rgba(0,0,0,0.8); padding:5px; position:absolute; bottom:0; left:0; margin-left:auto; width:100%; text-align:left"&gt;Venditore: 
                &lt;a href="me.php?l=it&amp;amp;p=45923"&gt;&lt;b&gt;Pierobob&lt;/b&gt;&lt;/a&gt;  
                &lt;br&gt; Prezzo: &lt;b&gt;350 &amp;euro;&lt;/b&gt;  
                &lt;br&gt; Zona: &lt;b&gt;Bologna&lt;/b&gt;  
                &lt;br&gt; 
                &lt;a href="vendo.php?t=1395911"&gt;Leggi annuncio&lt;/a&gt; (8 visite)
                &lt;br&gt;
              &lt;/div&gt;
            &lt;/div&gt;
  </code></pre>
  
  <p>What I am trying to do is this:</p>
  
  <pre><code>           var list = page.DocumentNode.SelectNodes("//div[@class='s_newsbox']");
             foreach (var obj in list)
              {
                var url = obj.SelectSingleNode(".//a").Attributes["href"].Value;
  </code></pre>
  
  <p>I want to grab the value  'vendo.php?t=1395911' but instead I get the href value of another line, which doesn't have a parent div with the class 's_newsbox'</p>
  
  <p>What I am doing wrong?</p>
  
  <p>Thanks you!</p>