I need to write dataweave code for transforming csv to xml. My output xml should not contain xml declaration('<?xml version='1.0' encoding='UTF-8'?>')
.
dataweave code:
%dw 1.0
%output application/xml
---
parent :{
child1:payload.input1,
child2:payload.input2
}
expected output:
<parent>
<child1></child1>
<child2><child2>
</parent>
present output:
<?xml version='1.0' encoding='UTF-8'?>
<parent>
<child1></child1>
<child2></child2>
</parent>
please suggest me the directive to be added in headers section. thanks