SQL SERVER xml with CDATA
问题 I have a table in my database with a column containing xml. The column type is nvarchar(max). The xml is formed in this way <root> <child>....</child> . . <special> <event><![CDATA[text->text]]></event> <event><![CDATA[text->text]]></event> ... </special> </root> I have not created the db, I cannot change the way information is stored in it but I can retrieve it with a select. For the extraction I use select cast(replace(xml,'utf-8','utf-16')as xml) from table It works well except for cdata,