Page 1 of 1

How to escape double quotes in a transformer?

Posted: Thu Jul 25, 2013 3:49 pm
by MrBlack
Simple question, how to do you escape a literal string when concatenating in a transformer? This doesn't work:

Code: Select all

"<doc xmls=\"google.com\" >":DSLink1.col:"</doc>"
As you can see I have a literal string that uses double quotes and I can't remember what the character is that escapes those out so I can continue with the concatenation.

Posted: Thu Jul 25, 2013 4:10 pm
by chulett
You don't need to escape them, use single quotes around the string with the doubles inside:

Code: Select all

'<doc xmls="google.com" >':DSLink1.col:"</doc>"
(and vice-versa works as well)