title: XPath to find elements with attributes
body: <p>How can I find elements that has at least one attribute?</p>
  
  <p>Example:</p>
  
  <pre><code>&lt;tr&gt;...&lt;/tr&gt;
  &lt;tr style=""&gt;...&lt;/tr&gt;
  &lt;tr width=""&gt;...&lt;/tr&gt;
  </code></pre>
  
  <p>I want all tr elements but ...</p>
  
  <p>I tried following xpath but it doesn't work.</p>
  
  <pre><code>//table//tr[contains(attributes::*,'')]
  </code></pre>
  
  <p>Thanks</p>