If you use xhtml
, I am sure that the conversion to Xml
will be:
select convert(xml, '<p> this is a code</p>') as code from table name for xml path (''), type
EDIT: if the column is ntext
, implicit conversion to Xml
supported:
create table
source share