Skip to Content
0
May 08, 2018 at 02:41 PM

How to convert special charecter "&" in XML(not well formed) through XSLT

75 Views Last edit May 09, 2018 at 04:17 AM 3 rev

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