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. product@cost which is > 5000, you can write as follow.
product[@cost > '5000']
2. product@name contains "yellow" (case-insensitivity).
contains(translate(product[@name], 'ABC...Z', 'abc....z'), translate('yellow', 'ABC...Z', 'abc....z'))
VC6相關問題
/ XML, XSLT, XPATH, 所有與XML相關的