XQuery TutorialLesson 70Free preview
XQuery Terms
This lesson is part of XML · All levels
Summary
The XQuery query is composed of two main parts: a prologue containing declarations and a play expression in the form of evaluated expressions. Prologues are used to declare the namespace, base URI, variable, and function to be used by the query. All prologue declarations are written with the keyword declare followed by semicolon as the separator of the statement.
Key points
- XQuery = prologue + main expression
- The prologue contains a declaration of namespace, base URI, variable, and function
- Declaration form: declare namespace xf="http://...";
- Declare variable $x:= value; for global variables
- Declare function prefix:nama($a) {...}; for a custom made function
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.