RKCP Information Technology
                                                                                                          XML
Home » Courses   » XQuery

XML XQuery

Overview

How to find, retrieve, and manipulate data in XML documents using XQuery.


Objective

  • Understand the XQuery data model
  • Master the fundamentals of the XQuery language
  • Use path expressions to refer to elements
  • Select and filter using FLWORs
  • Group combine, and join results
  • Work with namespaces
  • Manipulate strings of text
  • Use functions and modules


Prerequisites

  • Should understand the fundamentals of XML.


Syllabus

Expand All
  • 1. XQuery in Context
    • What is XQuery?
    • Use Cases
    • Background and language design
    • Easing into XQuery
  • 2. The XQuery Data Model
    • Nodes
    • Atomic values
    • Sequences
  • 3. XQuery Language Basics
    • XQuery syntax and keywords
    • Variables
    • Function calls
    • Comments
    • Comparisons
    • Conditional expressions (if-then-else)
    • The query prolog
  • 4. Path Expressions
    • Axes
    • Node tests
    • Predicates
    • The position() and last() functions
    • The doc() and collection() functions
  • 5. Adding Elements and Attributes using Constructors
    • Direct element constructors
    • Direct attribute constructors
    • Computed constructors
  • 6. Selecting and Filtering using FLWORs
    • The for clause
    • The let clause
    • The where clause
    • The return clause
    • The order by clause
    • Quantified expressions (some/every satisfies)
  • 7. Grouping, Combining and Joining Results
    • Selecting distinct values
    • Joining two documents
    • Outer joins
    • Combining sequences (union, except, intersect)
    • Grouping
  • 8. Working with Namespaces
    • Namespaces in XML
    • Namespaces in XQuery
  • 9. Working with Text and Strings
    • Comparing strings
    • Matching with regular expressions
    • Manipulating strings (concatenating, splitting, replacing)
    • Understanding whitespace
  • 10. Functions and Modules
    • Calling built-in functions
    • User-defined functions
    • Library modules
    • Global variables
  • 11. Closer look at Types and Schemas
    • The XQuery type system
    • Constructors and casting
    • Using schemas with XQuery