XQuery: The complete course
Abstract
Detailed technical coverage of XQuery 1.0, including XPath 2.0, based on material from the book XQuery. It provides attendees with a solid understanding of the syntax and structure of XQuery expressions. Emphasis is on practical examples and hands-on participation from the attendees.
Duration
2-3 days
Schedule
To schedule a class, please contact us at pwalmsley@datypic.com.
Topics covered
- XQuery in context
- What is XQuery?
- Use cases
- Background and language design
- Easing into XQuery
- The data model
- Nodes
- Atomic values
- Sequences
- XQuery language basics
- XQuery syntax and keywords
- Variables
- Function calls
- Comments
- Comparisons
- Conditional expressions (if-then-else)
- The query prolog
- Path Expressions
- Axes
- Node tests
- Predicates
- The
position
andlast
functions - The
doc
andcollection
functions
- Adding Elements and attributes
- Direct element constructors
- Direct attribute constructors
- Computed constructors
- Selecting and filtering using FLWOR expressions
- The for clause
- The let clause
- The where clause
- The return clause
- The order by clause
- Combining and joining results
- Selecting distinct values
- Joining two documents
- Outer joins
- Combining sequences (union, except, intersect)
- Grouping
- Namespaces
- Namespaces in XML
- Namespaces in XQuery
- Working with text and strings
- Comparing strings
- Matching with regular expressions
- Manipulating strings (concatenating, splitting, replacing)
- Functions and modules
- Calling built-in functions
- User-defined functions
- Library modules
- Global variables
- A closer look at types and schemas
- The XQuery/XPath type system
- Constructors and casting
- Using schemas with XQuery
- Conclusion