Is it possible to find xpath of any specific node of XML or XHTML file ?
For (e.g.)
<html>
<body>
<div id="a">
<div>
</div>
<div class"b">
<div>
//I want xpath of below line only
<a id="c">Here </a>
</div>
</div>
</div>
</body>
</html>
As shown above, if I want xpath of <a id="c">Here </a> line only.
Answer should be like :- /html/body/div/div[2]/a[@id="c"] Is it possible? If yes, could you please provide code?