I have requirement to map specified patterned string to xml using data mapper in Mule.
Input payload (String) to Data mapper:
key1:value1,key2:value2
output payload (xml) from Data Mapper:
<control>
<Parameter>
<Key>key1</Key>
<Value>value1</Value>
</Parameter>
<Parameter>
<Key>key2</Key>
<Value>value2</Value>
</Parameter>
</control>
Can someone give me the solution to achieve this using data mapper in mule?