Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3316

Re: CDATA XML Tags - Special Char

$
0
0

hi Raghu,

 

Thanks for sharing the Code and video, i did used the code to create the java mapping , but i didn't see any transformation with the code.

 

May be i did something wrong , please correct me,

 

My scenario again,

 

I have message mapping , in one of source field it should be mapped  with Target field and get the output with CDATA Tag

 

Source Filed :  <Text><PI is Awesome><Text> ------>       Target Field <TextC><![CDATA[PI is Awesome]]></TextC> , so to get this result i wrote simple UDF to get

 

<[!CDATA]]> tag in target field , but after mapping is executed the output for target field is

 

<Text> ------>       Target Field <TextC><&lt;![CDATA[PI is Awesome]]&gt;</TextC>  ............so to replace the &it; and &gt; with < and >


and  as you suggested i used the Java mapping in Operation mapping along with Message mapping. But i didn't see any  change. any more suggestion


Thanks in advance,


Regards,

Pooja


Viewing all articles
Browse latest Browse all 3316

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>