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
We will continue to use the "books.xml" document in the following example (in an XML file in the same).
See "books.xml" file in your browser .
Look at the following path expression:
This expression can be selected above all the title elements under the book elements under the bookstore element, and the value of the price element which must be greater than 30.
FLWOR expression below the selected data and the above path is the same as this expression:
Output:
By FLWOR, you can sort the results:
FLWOR is "For, Let, Where, Order by, Return" only take acronym.
statements for all book elements under the bookstore element into a variable named $ x extraction in.
where statements element selected book price element values greater than 30.
order by statement defines the sort order. Will be sorted according to the title element.
return statement specifies what they return. In this returns the title elements.
The above XQuery expression results: