How I Created It:
This is actually from a tutorial from the text book, "New Perspectives on XML, Comprehensive, 3rd Edition". I used the tutorial as a guide to create an XML document using XQuery. Using XQuery, you can select data based on search criteria, join data from multiple tables (like in SQL), and summarize data with aggregate functions.
Here is a list of most of the elements and attributes that I used, many of them for the first time:- Declare variables in XML / XQuery
- Use Elements
- Use "FLWOR" query, which is an XQuery structure that uses the following structure
- The For clause, which is used with for-each loops
- The Let clause, which is a local variable used in the query
- The Where clause
- The Order By clause, which sorts the query
- The Return clause, which specifies the format and the structure of the result
What I Learned:
I learned to create queries using XQuery, which I have never heard of before. For me, it was very difficult to get used to the structure and also to make sure that it passed validation, but in the end, I did get the hang of it.