http://www.w3schools.com/xpath/xpath_operators.asp
XPath Operators
Below is a list of the operators that can be used in XPath expressions:
Operator | Description | Example | Return value |
---|---|---|---|
| | Computes two node-sets | //book | //cd | Returns a node-set with all book and cd elements |
+ | Addition | 6 + 4 | 10 |
- | Subtraction | 6 - 4 | 2 |
* | Multiplication |
6 * 4 |
24 |
div | Division | 8 div 4 | 2 |
= | Equal | price=9.80 |
true if price is 9.80 false if price is 9.90 |
!= | Not equal | price!=9.80 |
true if price is 9.90 false if price is 9.80 |
< | Less than | price<9.80 |
true if price is 9.00 false if price is 9.80 |
<= | Less than or equal to | price<=9.80 |
true if price is 9.00 false if price is 9.90 |
> | Greater than | price>9.80 |
true if price is 9.90 false if price is 9.80 |
>= | Greater than or equal to | price>=9.80 |
true if price is 9.90 false if price is 9.70 |
or | or | price=9.80 or price=9.70 |
true if price is 9.80 false if price is 9.50 |
and | and | price>9.00 and price<9.90 |
true if price is 9.80 false if price is 8.50 |
mod | Modulus (division remainder) | 5 mod 2 | 1 |
'Android' 카테고리의 다른 글
wac feature lists (0) | 2013.10.08 |
---|---|
normalize-space in xpath (0) | 2013.10.08 |
Test for non-existant attribute in XPath (0) | 2013.10.08 |
How do I convert InputStream to String? (0) | 2013.10.08 |
assetmanager (0) | 2013.10.08 |