XQuery is still a relatively new and unfamiliar XML-based language, but it offers many possibilities for simplifying tasks that today are difficult or tedious. These five practical scenarios should give you ideas for leveraging XQuery in your own applications.
The XQuery data model recognizes seven types of nodes. Learn how to take advantage of the data model in XQuery expressions
Learn how to use XQuery's FLWR (for, let where, and return) expressions to process and restructure data from one or more documents.
XML blurs the distinctions between databases, documents, and messages, but it needs a powerful and elegant query language to reach its full potential. XPath does not go far enough. XQuery intends to be that language.
Learn to use XQuery conditional and quantified expressions to filter and select data, and to modify query results by including custom functions.