--- title: "Validate Expressions (XQuery) | Microsoft Docs" ms.custom: "" ms.date: "03/04/2017" ms.prod: sql ms.prod_service: sql ms.reviewer: "" ms.technology: xml ms.topic: "language-reference" dev_langs: - "XML" helpviewer_keywords: - "expressions [XQuery], validate" - "validate expressions [XQuery]" ms.assetid: fb2592a1-1fad-41f9-8ff8-74c5905dbae9 author: "rothja" ms.author: "jroth" --- # Validate Expressions (XQuery) [!INCLUDE[tsql-appliesto-ss2008-xxxx-xxxx-xxx-md](../includes/tsql-appliesto-ss2008-xxxx-xxxx-xxx-md.md)] In this implementation, the **validate** expression is not supported. The results of XQuery construction expressions are always untyped. If the result of an XQuery expression should be typed, use the SQL CAST expression to cast the result to an **xml** data type with the preferred schema collection. ## See Also [Path Expressions (XQuery)](../xquery/path-expressions-xquery.md) [XQuery Expressions](../xquery/xquery-expressions.md)