I want transform CVS file to XML using “Transform message”. When i configure the Output Type using a XML example,Mule can't identify the root element. Is there a problem in the XML file(person.xml)?
![alt text][1]
[1]: /storage/temp/941-mapper.png
Hi @yardgu,
I am not able to find any issue with your XML or neither any issue on loading the XML to the mule transform processor (dataweave).
PFB the dw:transform for the xml you have shared.PFA the zip containing the person.zip
<dw:transform-message metadata:id="51c18da7-8875-43d6-bc8f-5580f44dd349" doc:name="Transform Message">
<dw:set-payload><![CDATA[%dw 1.0
%output application/xml
---
{
person: {
name: payload.person.name
}
}] ]></dw:set-payload>
</dw:transform-message>
Regards
Arun