AnsweredAssumed Answered

Process XML Variable with special characters

Question asked by amarnathkothapalli_6791 on Oct 4, 2016
Latest reply on Oct 6, 2016 by amarnathkothapalli_6791
Hi

I have created an XML variable which has some special characters (",',&) and when I read the variable value using GET_VAR, I am getting it as string literal as ",',&

However, I am expecting it the way I have defined

XML Variable (VARA.XML.TEST)

Test <Name>"Test1 & Test2" </Name>

when i use below code

:SET &VAR# = GET_VAR(VARA.XML.TEXT,Test,/Name/text())

I get the output as &quot;Test1 &amp; Test &quot;. I would like to see the output as "Test1 & Test2". Am i doing something wrong here?




Outcomes