Pretty simple question - I have an attribute that I would like to have double quotes in. How do I escape them? I\'ve tried
tSql escapes a double quote with another double quote. So if you wanted it to be part of your sql string literal you would do this:
declare @xml xml
set @xml = " "
If you want to include a quote inside a value in the xml itself, you use an entity, which would look like this:
declare @xml xml
set @xml = " "