on 06-11-2015 7:27 AM
Hi Experts,
I am new to java udfs, can you please provide me the java code for following scenario.
I need to replace below special characters with specified string.
< <
> >
& &
' '
" "
example: input value: salary < 100
output value: salary < 100
Note: Please let me know if it is possible in graphical mapping.
Thanks in Advance,
Sree
Hi All
Thanks for your reply,
We have done the scenario in Graphical mapping only , thanks alot guys
Best Regards
Sreekanth
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You can achieve the same through XSLT mapping, since as far as I know, <, > are used in XSLT mapping. Please find the below link for the same:
Regards,
Souvik
example: input value: salary < 100
output value: salary < 100
It is not possible to do this in a UDF and it makes no sense to do it in mapping anyway.
If your payload contains a < charater, then you should solve the issue at sender side. Insist on valid XML.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sreekanthreddy,
Check Raghu Vamseedhar Reddy KadipiReddy blog
You only need to add inputContent = inputContent.replaceAll("&", "&"); with all the characters that you want to change.
Regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
76 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.