XPath TutorialLesson 50Free preview
XPath Operators
This lesson is part of XML · All levels
Summary
XPath provides comparison operators (=,!=, <, >), arithmetic (+, -, *, div, mod), logic (and, or), as well as node merging (). Boolean values can be formed from comparisons and then used on predicates. Note that div is written div because the * mark is already used as a wildcard.
Key points
- The comparison operator: =,!=, <, <=, >, >=
- Arithmetic operators: +, -, *, div, mod
- Logic operator: and as well as or
- The sign combines the node-set
- Div is used for division instead of slash
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.