title: How can i get all value from child node using htmlagilitypack?
body: <p>How can i get value from child node like href value and add them to list using html agility pack with the class name of parent node?</p>
  
  <p>I have tried this code but fail</p>
  
  <pre><code>var pagedivs = htmlDocument.DocumentNode.SelectNodes("div").Where(e =&gt; e.GetAttributeValue("class", "").Equals("pagination"))
                  .Where(k =&gt; k.Descendants().Any(t =&gt; t.Name == "li")).ToList();
  </code></pre>
  
  <p>HTML code in web:</p>
  
  <pre><code>&lt;div class="pagination"&gt;
          &lt;ul class="pagination-list"&gt;
              &lt;li class="hidden-phone current"&gt;&lt;a title="1" href="" class="pagenav"&gt;1&lt;/a&gt;&lt;/li&gt;
              &lt;li class="hidden-phone"&gt;&lt;a title="2" href="/collections/remarkable-products?page=2" class="pagenav"&gt;2&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a title="Next page" href="/collections/remarkable-products?page=2" class="pagenav"&gt;&lt;i class="fa fa-chevron-right"&gt;&lt;/i&gt;&lt;/a&gt;&lt;/li&gt;
          &lt;/ul&gt;
          &lt;input type="hidden" name="limitstart" value="0"&gt;
      &lt;/div&gt;
  </code></pre>