XPath Operators (JNNC Technologies)


Below is a list of the operators that can be used in XPath expressions:
OperatorDescriptionExample
|Computes two node-sets//book | //cd
+Addition6 + 4
-Subtraction6 - 4
*Multiplication6 * 4
divDivision8 div 4
=Equalprice=9.80
!=Not equalprice!=9.80
<Less thanprice<9.80
<=Less than or equal toprice<=9.80
>Greater thanprice>9.80
>=Greater than or equal toprice>=9.80
ororprice=9.80 or price=9.70
andandprice>9.00 and price<9.90
modModulus (division remainder)5 mod 2

Post a Comment

0 Comments

'; (function() { var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true; dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js'; (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); })();