cancel
Showing results for 
Search instead for 
Did you mean: 

Output message with escaped characters

0 Kudos

Hi Gurus, I have a requirement wherein we need to send  escaped characters to the target system. For example we have the following as an output: test We need to have the output below for the sample message above: &ltroot&gt &lttext&gttest&lt/text&gt &lt/root&gt I understand that CDATA can be used to perform the reverse process wherein the escaped characters can be 'unescaped'. Can we do this via XSL?

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos
Former Member
0 Kudos

Hello,

Yes you can do this via XSL.

To convert into XSL, you need to use the namespace standard of w3c.org.

Regards,

Souvik

0 Kudos

Thanks Souvik, there's no need for CDATA? would you know how I can have the escaped output?

Former Member
0 Kudos

Hello,

There is no need for CDATA.

For escaped output, you need to convert into corresponding XSL, and for doing that, please use the following tag.

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

For addtional info on converting in XSL, please refer below link:

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/000ee4d0-be91-2d10-8aaf-ff8045bdd...

Just for further info : "<" gets converted to "&lt", ">" gets converted into "&gt", etc. in XSL.

Regards,

Souvik

0 Kudos

I tried this code:

the characters are still unescaped

former_member186851
Active Contributor
0 Kudos

Thanks Raghu!

former_member186851
Active Contributor
0 Kudos

Most Welcome..

Answers (0)