Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3523

UDF to handle space value in Message mapping of PI

$
0
0

Hi Experts,

 

Can anyone please tell me what is the code to remove the single  space coming in the field value of a xml tag and supresssthe Tag.

Eg>Source Xml:  <Name>  <Name>

      Target xml :<Name/>

I have written one but i donot know why it is not working.

 

For(int i = 0;i<var1.length();i++)

{

if(var1[i].trim.isEqual(""))

 

result.addValue(ResultLiss.SUPRESS);

else

result.addValue(var1[i]);

]

 

Could anyone tell me what shold be the exact one to validate space value .

 

 

Thanks,

Suparna Banerjee


Viewing all articles
Browse latest Browse all 3523

Trending Articles



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