on 05-08-2018 3:41 PM
Hi Experts,
Can any one tell me how to process the symbol '&' which is coming from incoming payload and throwing error in PI message mapping. I knew that the symbols &,<,> are not allowed in XML, and these symbols need to specified as like &
can anybody help to achieve this through XSLT mapping.
test messgae:
<Emp_Info>
<Ename>Govardhan</Ename>
<salary>100000</salary>
<locaton>delhi</locaton>
<designation>SSE</designation>
<address>Delhi&Banglore</address>
</Emp_Info>
In the above example, I need to replace the & symbol to &
Result:
<Emp_Info>
<Ename>Govardhan</Ename>
<salary>100000</salary>
<locaton>delhi</locaton>
<designation>SSE</designation>
<address>Delhi&Banglore</address>
</Emp_Info>
Thanks,
Govardhan
Hi Govardhan!
You could use java mapping to get payload as text string and replace "&" symbol with respective escape sequence.
Regards, Evgeniy.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
agree w the prev comment -- all special chars have to be (XML) escaped, for example: & for &
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.