Applies To: SQL Server 2014, SQL Server 2016 Preview
Is the data type that stores XML data. You can store xml instances in a column, or a variable of xml type.
Applies to: SQL Server (SQL Server 2008 through current version), Azure SQL Database.
Restricts the xml instance to be a well-formed XML fragment. The XML data can contain multiple zero or more elements at the top level. Text nodes are also allowed at the top level.
This is the default behavior.
Restricts the xml instance to be a well-formed XML document. The XML data must have one and only one root element. Text nodes are not allowed at the top level.
Is the name of an XML schema collection. To create a typed xml column or variable, you can optionally specify the XML schema collection name. For more information about typed and untyped XML, see Compare Typed XML to Untyped XML.
The stored representation of xml data type instances cannot exceed 2 gigabytes (GB) in size.
The CONTENT and DOCUMENT facets apply only to typed XML. For more information see Compare Typed XML to Untyped XML.