How does this XPATH query differentiate?

Posted by Soham on Stack Overflow See other posts from Stack Overflow or by Soham
Published on 2010-06-08T08:47:57Z Indexed on 2010/06/08 8:52 UTC
Read the original article Hit count: 217

Filed under:
|
|

I am kind of repeating this question because mostly due to my own ignorance, I could not fully understand the innards.

Given this HTML snippet

<td valign=top class="tim_new"><a href="/stocks/company_info/pricechart.php?sc_did=MI42" class="tim_new">3M India</a></td>                                                  <td class="tim_new" valign=top><a href='/stocks/marketstats/indcomp.php?optex=NSE&indcode=Diversified' class=tim>Diversified</a></td>

How does this XPATH //a[@class='tim_new'] differentiate between line 1 and line 2.

© Stack Overflow or respective owner

Related posts about c#

Related posts about xpath