title: XPath how to select all either div or td's with the same class?
body: <p>How do I select all <code>div</code>'s or <code>td</code>'s with the same set of attributes.</p>
  
  <p>Given some fingerprint features like className is there an easier way to select a well defined subset of element types with xpath, than to concatenate all different element types (and fingerprint attribs) with <code>|</code>.</p>
  
  <p>I know I can write:</p>
  
  <pre><code>//div[@class="myClass"]|//td[@class="myClass"]
  </code></pre>
  
  <p>but since my fingerprint attributes are long and complex (this is grossly simplified) I was hoping for something in the neighbourhood of this:</p>
  
  <pre><code>//(div|td)[@class="myClass"]
  </code></pre>
  
  <p>but it does not seem to work out for me</p>