title: XPath expression that matches the bgcolor attribute of a TR element
body: <p>Working with HtmlAgilityPack against table rows that have been generated without <code>name</code> or <code>id</code>. Instead, i need to select based on the value contained in the row's bgcolor attribute:</p>
  
  <p>I understand that XPath will return all rows where the <code>name</code> attribute = <code>display</code>:</p>
  
  <pre><code>foreach(HtmlNode cell in doc.DocumentElement.SelectNodes("//tr[@name='display']/td")
  </code></pre>
  
  <p>Given the code snippet below, what expression will select all  elements when the row's <code>bgcolor ="#FFFFFF"</code>>? </p>
  
  <p>I've tried: <code>SelectNodes(//tr[@bgcolor='#FFFFFF']/td")</code></p>
  
  <pre><code>&gt; &lt;tr bgcolor="#EAF2FA"&gt;
  &gt;     &lt;td colspan="2"&gt;
  &gt;         &lt;font style="font-family: sans-serif; font-size:12px;"&gt;&lt;strong&gt;Name&lt;/strong&gt;&lt;/font&gt;
  &gt;     &lt;/td&gt; &lt;/tr&gt; &lt;tr bgcolor="#FFFFFF"&gt;
  &gt;     &lt;td width="20"&gt;&amp;nbsp;&lt;/td&gt;
  &gt;     &lt;td&gt;
  &gt;         &lt;font style="font-family: sans-serif; font-size:12px;"&gt;Steve&lt;/font&gt;
  &gt;     &lt;/td&gt; &lt;/tr&gt;
  </code></pre>
  
  <p>thx</p>