The NTEXT, TEXT, and IMAGE types are deprecated and must be replaced by the types NVARCHAR (MAX), VARCHAR (MAX), and VARBINARY (MAX). New types support string operators, including equality comparisons.
XML can never be compared as a string. XML fragments can be written in thousands of ways and semantically result in one XML. Just think about namespaces and how they can be declared, but like.
Remus Rusanu
source share