XPath TutorialLesson 48Free preview
XPath Syntax
This lesson is part of XML · All levels
Summary
XPath syntax consists of selecting nodes with the path (/, //,.,..), wildcard (*), predicate filter [..], and merging with the symbol. There are also functions such as count(), text(), and node() that enrich the expression. Proper writing makes complex selection seem simple.
Key points
- // picking elements at any depth
- is a wildcard for any node
- Predicate [..] filter based on position or condition
- ♬ combining two selection results
- Functions such as count() and text() complement the expression
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.