Search code examples
special-charactersencodedataweavemulesoftmel

How to map special character field in Mule 3 dataweave?


I have an XML payload which consists of many fields out of which there is one field which has special character. Antigüedad is the field name and I am transforming this XML payload to JSON as Antigüedad: payload.@Antigüedad I am getting an error as invalid input ü expected is *


Solution

  • It should work if you wrap the selector in quotes such as

    "Antigüedad": payload.@"Antigüedad"