cancel
Showing results for 
Search instead for 
Did you mean: 

Esacping in XML via ABAP CL_IXML functions?

Former Member
0 Kudos

Hello Partners:

I was going through some work of XML integration of SAP with a third-party. But came across an issue:

The text descriptions we are sending within an XML tag has certain special characters like '&'. But the XML parser is not escaping it. Hence its replacing '&' with '&' in the XML data string. So now I need to understand how can we implement escaping via ABAP for generated XML strings? Can you all please help me to understand which methods to use and how?

It will be much appreciated.

Thanks in advance.

Vivek Singh.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

It got escaped in this message I posted!

The issue is "&" being replaced by "& a m p ;". Please ignore the spaces in the latter, I have put it purposely to avoid the 'amp;' from being escaped when the browser parses this message.

Thanks.