cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple CDATA Conversion.

santosh_k3
Active Participant
0 Kudos

Hi All,

I have a requirement where i get the input payload with multiple CDATA.

i.e., xml string is wrapped in CDATA and xml string also contains CDATA elements in it .

My requirement is to eliminate the first CDATA and pass the payload as it is with rest of the CDATA elements.

What could be the better option that i need to go with either JAVA mapping or XSLT mapping.

Please provide the code for the same.

Thanks

Sai

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member184720
Active Contributor
0 Kudos

>>>I have a requirement where i get the input payload with multiple CDATA.

How are you receiving this CDATA segments? Inside a field ? If so did you try replace string function?

>>What could be the better option that i need to go with either JAVA mapping or XSLT mappin

if not - You can go for java mapping to replace the first occurrence of Cdata.

>>>Please provide the code for the same

You should give a try first and if you stuck somewhere we can help you.

Sample code to read the input stream:

Dynamic file name for pass-through scenario - Process Integration - SCN Wiki

Replace first occurrence :

String (Java Platform SE 7 )