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.