Google News
logo
XPath - Interview Questions
How to compare two values in XPath?
You can compare two values in Xpath with the help of the following steps :
 
* Create the path to the first node set that you want to compare.

* Then, type = (equal to), != (not equal to), > (greater than), >= (greater than or equal to), < (less than), or <= (less than or equal to), depending on how you want to compare the two values.

* Finally, type a value or a path to the node-set that you want to compare with the first node set identified in Step 1.
Advertisement