title: How to find 2nd td in html using xpath
body: <p>I have 2 occourances of same td in 2 different tables.</p>
  
  <p>I am able to get the value 'Yes' for the 1st one using this:</p>
  
  <pre><code>//h:td[1][*[contains(.,'Loudspeaker')]]/../h:td[last()]/text()
  </code></pre>
  
  <p>but not getting the value 'Voice 75dB / Noise 66dB / Ring 75dB' for the 2nd one.
  I tried:</p>
  
  <pre><code>//h:td[2][*[contains(.,'Loudspeaker')]]/../h:td[last()]/text()
  </code></pre>
  
  <p>I am very new to html and xpath so please bear with me.</p>
  
  <p>portion of my html:</p>
  
  <pre><code>&lt;/table&gt;&lt;table cellspacing="0"&gt;
  &lt;tr&gt;
  &lt;th rowspan="3" scope="row"&gt;Sound&lt;/th&gt;
  &lt;td class="ttl"&gt;&lt;a href="glossary.php3?term=call-alerts"&gt;Alert types&lt;/a&gt;&lt;/td&gt;
  &lt;td class="nfo"&gt;Vibration; MP3, WAV ringtones&lt;/td&gt;
      &lt;/tr&gt;
  
  &lt;tr&gt;
  &lt;td class="ttl"&gt;&lt;a href="glossary.php3?term=loudspeaker"&gt;Loudspeaker&lt;/a&gt; &lt;/td&gt;
  &lt;td class="nfo"&gt;Yes&lt;/td&gt;
  &lt;/tr&gt;
  </code></pre>
  
  <p>.
  .</p>
  
  <pre><code>&lt;table cellspacing="0"&gt;
  &lt;tr&gt;
  &lt;th rowspan="5" scope="row"&gt;Tests&lt;/th&gt;
  &lt;td class="ttl"&gt;&lt;a href="xyz.php"&gt;Display&lt;/a&gt;&lt;/td&gt;
  &lt;td class="nfo"&gt;
  &lt;a class="noUnd" href="http://xyz.php"&gt;Contrast ratio: Infinite (nominal) / 3.419:1     (sunlight)&lt;/a&gt;&lt;/td&gt;
  &lt;/tr&gt;&lt;tr&gt;
  
  &lt;td class="ttl"&gt;&lt;a href="xyz.php"&gt;Loudspeaker&lt;/a&gt;&lt;/td&gt;
  &lt;td class="nfo"&gt;
  &lt;a class="noUnd" href="http://xyz.php"&gt;Voice 75dB / Noise 66dB / Ring 75dB&lt;/a&gt;&lt;/td&gt;
  &lt;/tr&gt;&lt;tr&gt;
  </code></pre>
  
  <p>..</p>
  
  <p>Thanks in Advance.</p>