XML BRINGS WITH it some powerful query languages for dealing with the hierarchical format that is typical of an XML document. This chapter covers XQuery from the perspective of its definition in a series of W3C standards. After looking at the standards, we describe the SQL Server 2005–specific implementation of the XQuery standards. The implementation consists of five SQL Server–specific methods on the
XML data type that use XQuery to allow you to query or mutate XML data.
In Chapter 1, we describe the components and uses of XML, and in Chapter 9, we cover the
XML native data type in SQL Server 2005. The
XML data type typically is a complex type—that is, a type that almost always contains ...