Skip to content

Latest commit

 

History

History
36 lines (30 loc) · 2.01 KB

File metadata and controls

36 lines (30 loc) · 2.01 KB
title XQuery Basics
description Learn the fundamentals of the XQuery language, including sequence and QNames, expression context, atomization, type system, error handling, and comments.
author rwestMSFT
ms.author randolphwest
ms.date 12/11/2025
ms.service sql
ms.subservice xml
ms.topic reference
helpviewer_keywords
XQuery, about XQuery
dev_langs
XML

XQuery basics

[!INCLUDE SQL Server Azure SQL Database]

This section describes the fundamentals of XQuery.

In this section

Article Description
Sequence and QNames (XQuery) Describes sequence and also QNames and predefined namespaces.
Expression Context and Query Evaluation (XQuery) Describes the two contexts in which XQuery is evaluated. These two contexts are static and dynamic.
Atomization (XQuery) Describes atomization, which is a process of extracting the typed value of an item.
Effective Boolean Value (XQuery) Describes the effective Boolean value. This value can be computed for expressions that return a single Boolean value, a node sequence, or an empty sequence.
Type System (XQuery) Describes the XQuery type system with various predefined types. XQuery is a strongly typed language for schema types and a weakly typed language for untyped data.
Error handling (XQuery) Describes the handling of static, dynamic, and type errors in XQuery.
Comments in XQuery Describes how to add comments in XQuery by using the (: and :) delimiters.
XQuery and Static Typing Describes XQuery in [!INCLUDE ssNoVersion] as a statically typed language.

Related content