title: AngleSharp Parsing
body: <p>Can't find many examples of using AngleSharp for parsing when you don't have a class name or id to use.</p>
  
  <p>HTML</p>
  
  <pre><code>&lt;span&gt;&lt;a href="google.com" title="Google"&gt;&lt;span class="icon icon_none"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;
  &lt;span&gt;&lt;a href="bing.com" title="Bing"&gt;&lt;span class="icon icon_none"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;
  &lt;span&gt;&lt;a href="yahoo.com" title="Yahoo"&gt;&lt;span class="icon icon_none"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;
  </code></pre>
  
  <p>I want to find the href from any <code>&lt;a&gt;</code> tags that have a title = Bing</p>
  
  <p>In Python BeautifulSoup I would use</p>
  
  <pre><code>item_needed = a_row.find('a', {'title': 'Bing'})
  </code></pre>
  
  <p>and then grab the href attribute</p>
  
  <p>or jQuery</p>
  
  <pre><code>a[title='Bing']
  </code></pre>
  
  <p>But, I'm stuck using AngleSharp
  eg. following example 
  <a href="https://github.com/AngleSharp/AngleSharp/wiki/Examples#getting-certain-elements" rel="noreferrer">https://github.com/AngleSharp/AngleSharp/wiki/Examples#getting-certain-elements</a></p>
  
  <p>c# AngleSharp</p>
  
  <pre><code>var parser = new AngleSharp.Parser.Html.HtmlParser();
  var document = parser.Parse(@"&lt;span&gt;&lt;a href=""google.com"" title=""Google""&gt;&lt;span class=""icon icon_none""&gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt; span &gt;&lt; a href = ""bing.com"" title = ""Bing"" &gt;&lt; span class=""icon icon_none""&gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span&gt;&lt;a href = ""yahoo.com"" title=""Yahoo""&gt;&lt;span class=""icon icon_none""&gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;");
  
  //Do something with LINQ
  var blueListItemsLinq = document.All.Where(m =&gt; m.LocalName == "a" &amp;&amp; //stuck);
  </code></pre>