AnsweredAssumed Answered

How better can I escape XML special chars from the context variable value?

Question asked by graju Employee on Dec 21, 2015
Latest reply on Dec 28, 2015 by graju

Using CA API Gateway assertions, I would like to escape special chars (>, <, &, ...) from my context variable values. If my data arrives as JSON, JSON to XML transformation does take care of the same. But, what if the URI and Query Parameters hold my partial input containing all these special chars. I cannot use them as it is inside the XML message. I could expect there's something similar to Encode/Decore Data assertion to do this job.

 

thanks,

Raju

Outcomes