A predicate is a way to filter XQuery data that matches a condition in a Path Expression.
Syntax
books.xml
Link to original <bookstore> <book> <name>All about XML</name> <price>$20</price> </book> <book> <name>Learning XQuery</name> <price>$15</price> </book> </bookstore>
doc("books.xml")/bookstore/book[price < 20]
Read all book
s with price
under $.