I try to convert this into XML:
DECLARE @xml XML; SELECT @xml = (SELECT 'xxx' + nchar(0x10) FOR XML PATH('') );
I got error: XML parsing: line 1, character 9, illegal xml character
But this works fine:
SELECT 'xxx' + nchar(0x10) FOR XML PATH('')
Is there a workaround for this?
On MS Connect nothing useful: https://connect.microsoft.com/SQLServer/feedback/details/547817/xml-type-does-not-accept-all-character-escape-sequences