How do I select the last XHTML <span> element with a particular class in XPath?
- by Fintan
My target XHTML document (simplified) is like the following:
<html>
<head>
</head>
<body>
<span class="boris"> </span>
<span class="boris"> </span>
<span class="johnson"> </span>
</body>
</html>
I'm trying to select the last of class "boris."
The XPath expression
…