6. • Output:
• INFO 2016-05-06 12:38:07,038
[[dataweave].connector.file.mule.default.receiver.01]
org.mule.transport.file.FileMessageReceiver: Lock obtained on file:
D:csvcontactsample.xml
• INFO 2016-05-06 12:38:07,038 [[dataweave].dataweaveFlow.stage1.05]
org.mule.api.processor.LoggerMessageProcessor: flow started
• INFO 2016-05-06 12:38:07,038 [[dataweave].dataweaveFlow.stage1.05]
org.mule.api.processor.LoggerMessageProcessor: --Output--{
• "Address": {
• "Country": "India",
• "State": "AP",
• "City": "Dharmavaram"
• }
• }--
•
•
•
7. • Flow of execution:
1. The above flow is used to convert xml to JSON
using DataWeave
2. It will pick the .xml file from specific location and
will convert and display json response in console
3. Sample xml:
<Address>
<Country>India</Country>
<State>AP</State>
<City>Dharmavaram</City>
</Address>