HTML tutorial
CSS3 tutorial
Bootstrap tutorial
JavaScript tutorial
JQuery tutorial
AngularJS tutorial
React tutorial
NodeJS tutorial
PHP tutorial
Python tutorial
Python3 tutorial
Django tutorial
Linux tutorial
Docker tutorial
Ruby tutorial
Java tutorial
C tutorial
C ++ tutorial
Perl tutorial
JSP tutorial
Lua tutorial
Scala tutorial
Go tutorial
ASP.NET tutorial
C # tutorial
XQuery is case-sensitive, XQuery elements, attributes, and variables must be legal XML names.
Some basic grammar rules:
"If-Then-Else" can be used in XQuery.
Consider the following example:
Note that the "If-Then-Else" syntax: parentheses after the if expression is required. else it is also required, but write-only "else ()" can be.
The example above results:
In XQuery, there are two ways to compare values.
Consider the following XQuery expression:
If the property value q is greater than 10, the above expression returns a value of true.
The following examples, if the return is only a q, and its value is greater than 10, then the expression returns true. If more than one q is returned, an error occurs: