You can use the xml data type methods to query an XML instance stored in a variable or column of xml type. The topics in this section describe how to use the xml data type methods.
You call these methods by using the user-defined type method invocation syntax. For example:
SELECT XmlCol.query(' ... ')
FROM Table
Note: |
|---|
|
The xml data type methods query(), value(), and exist() return NULL if executed against a NULL XML instance. Also, modify() does not return anything, but nodes() returns rowsets and an empty rowset with a NULL input.
|
Other Resources
Typed XML Compared to Untyped XML
Generating XML Instances
Implementing XML in SQL Server
Sample XML Applications
Help and Information
Getting SQL Server 2008 Assistance