Introduction to XQuery - 14 Hour Online Class or 2 Day Classroom Workshop
Learn XQuery by Example.
How to code XQuery, the query language for all XML sources, geared toward developers familiar with the basics of XML. Examples, Demonstrations and Workshops will use the Saxon XQuery Processor (or Oracle 10g XQuery support if preferred). Covers an overview of XQuery including comparisons with XSLT and SQL, XQuery Status, XQuery API, and XQueryX; XPath and XQuery; XQuery basics including terminology, structure, primitive expressions, Boolean values, Constructors, Variables, Operators and built-in Functions; FLWOR; XQuery data model including Sequences, Sequence-related Functions, Sequence and Comparison Operators, Casting and regular expressions; XQuery performance optimization; user-defined Functions; a section on 'tips and traps'; and using Saxon XQuery.
Try our free Introduction to XQuery tutorial!
Class Description:
Topic summary
- Introduction to XQuery
- What is XQuery?
- A Simple Example
- Why use XQuery?
- Other similar languages
- XQuery vs. XSLT
- XQuery vs. SQL
- XQuery Status
- XQuery API
- XQueryX
- Oracle
- Microsoft
- Summary and Workshop
- XPath and XQuery
- XPath and XQuery
- XPath Refresher
- XPath Predicates
- XPath Axis
- XPath 1.0 vs 2.0
- Summary and Workshop
- XQuery Basics
- Some terminology
- Structure
- Case and Comments
- Punctuation
- Primitive Expressions
- Boolean values
- Type Constructors
- Variables
- Sequences
- Arithmetic Operators
- Comparison Operators
- Conditional Expression
- Built In Functions
- Node Comparison Operators
- Summary and Workshop
- FLWOR
- Query Body: FLWOR
- FLWOR: for
- FLWOR: let
- FLWOR: where
- Quantified Expressions
- FLWOR: order by
- Null handling
- stable
- FLWOR: return
- FLWOR: joins
- Summary and Workshop
- XQuery Data
- XQuery Data Model
- Sequences
- Sequence Operators
- Comparison Operators
- Sequence related functions
- Computed element constructors
- External input
- Casting
- Regular expressions
- Summary and Workshop
- Performance optimization
- XQuery optimization
- Alternate formulations
- The unordered() function
- Atomic values vs nodes
- Use static typing
- Pragmas
- Summary
- User Defined Functions
- User Defined Functions
- Recursion
- Summary and Workshop
- Using Modules
- Creating modules
- Using modules
- Module variables
- Summary and Workshop
- Tips and Traps
- Creating a newline
- Spaces in expressions
- Boolean
- Node comparison
- Comparing nodes
- Comparing sequences
- Distinguish != from not(.=.)
- Comparing sequences of nodes
- Nodes and strings
- Parentheses
- every and empty sequences
- Eliminating node duplicates
- error()
- trace()
- Summary
- Appendix: Using Saxon XQuery
- Saxon x
- Installing Saxon XQuery
- Running Saxon XQuery
- Some Command Line Options
- Embedding in Java
- Appendix: Regular Expressions

