XML has many build-in functions. XQuery functions generally made perform with string values, numeric values, date and time comparisons, boolean values etc.
XQuery give us the facility to made our own functions.
Here are some of the ways, how to call XQuery functions:
Ex 1: When you use function in an element.
Ex 2: When you use function in the predicate of a path expression.
Ex 3: When you use function in a let clause
let $name := (substring($booktitle,1,4))
Asked In: Many Interviews |