Linked Questions

Popular Questions

I am trying to replace an xml from variable got from data weave into another data weave xml but I am getting xml with special chars as below, when the variable is replaced in the transform instead of getting '<' .

&lt;pol:convictionCode>AC24&lt;/pol:convictionCode>&#xd;
  &lt;pol:date>28012019&lt;/pol:date>&#xd;
  &lt;pol:banLength>00&lt;/pol:banLength>&#xd;

I am trying as below code but its not correct, getting error (org.mule.api.MessagingException: Execution of the expression).I also need to replace with ''. Not sure how to replace both of them in one go. Highly appreciate any help.

payload.replaceAll("\\&lt;","<")

Related Questions