cancel
Showing results for 
Search instead for 
Did you mean: 

How can I include CDATA in the node-value?

Former Member
0 Kudos

Hi Experts,

Via XI I map an incoming mail message to an outgoing XML. To be sure to not run into problems, I want to put <![CDATA[ and ]]> around the node-values.

Currently, I just do this in my message-mapping via a concatenate. The result LOOKS fine, but the XML-parser on the receiving application treats the CDATA as part of the total string and not as an indicator to accept every charachter within the node-value.

How can I put this CDATA around the node-values in a correct manner?

Thanks for your help!

Regards

William

Accepted Solutions (1)

Accepted Solutions (1)

former_member187563
Contributor
0 Kudos

hi,

you have to simply add one module in your communication channel

that is XMLAnonymizerBean

you can refer below for help:

/people/stefan.grube/blog/2007/02/02/remove-namespace-prefix-or-change-xml-encoding-with-the-xmlanonymizerbean

http://help.sap.com/saphelp_nw04/helpdata/en/2e/bf37423cf7ab04e10000000a1550b0/frameset.htm

hope it helps.

reward point 4 useful ans.

regards,

ujjwal kumar

Former Member
0 Kudos

Hi ujjwal,

Is this also usefull for outgoing xml-messages? I am not sure how to configure the module so that every value gets the CDATA around it..

For instance

<node>text123</node>

must be converted to

<node><![CDATA[[text123]]]></node>..

Regards,

William

former_member187563
Contributor
0 Kudos

hi,

Yes its useful for outgoing xml messages.

And its very easy to configure.

But using this you can change or remove the node name,not the node value.

For xml tags you can refer:

regards.

Former Member
0 Kudos

Willam,

how did u solve this problem...

Former Member
0 Kudos

Hi,

I solved it like this:

<NODE><xsl:text disable-output-escaping="yes"><![CDATA[<!]]]></xsl:text><xsl:text disable-output-escaping="yes"><![CDATA[[[CDATA[]]]></xsl:text>HERE COMES THE VALUE FOR THE FIELD<xsl:text disable-output-escaping="yes"><![[CDATA[]]]]]></xsl:text><xsl:text disable-output-escaping="yes"><![CDATA[>]]]></xsl:text></NODE>

Regards

William

Edited by: JWD on Aug 15, 2008 10:24 AM

Edited by: JWD on Aug 15, 2008 10:25 AM

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello,

These Links will help you....

This might help

/people/shabarish.vijayakumar/blog/2006/04/03/xi-in-the-role-of-a-ftp

http://www.cxml.org/files/downloads.cfm

******************************Reward points,if found useful