Trim / Remove spaces in Xpath?
If you are wondering how you can trim the spaces in your xpath, this is how:
The normalize-space function strips leading and trailing white-space from a string, replaces sequences of white-space characters by a single space, and returns the resulting string.
Example : Which one is better?
The second option is better as it targets at the specific nodes
More string functions in XPATH: