To search a attribute via XPATH. you can use Element[@Attr] to address it in XPATH.

So~~ to search some specific search as follow:

  1. [email protected] which is > 5000, you can write as follow.

product[@cost > ‘5000’]

  1. [email protected] contains “yellow” (case-insensitivity).

contains(translate(product[@name], ‘ABC…Z’, ‘abc….z’), translate(‘yellow’, ‘ABC…Z’, ‘abc….z’))


Evan

Attitude is everything