My XML Structure looks like below:-
<element>
<note nom="Rock" >Roll</note>
<note nom="Bands" >
<note nom="Unit" >jayz<note>
<note nom="Unit" >eminem<note>
<note nom="Unit" >drake<note>
</note>
</element>
After transformation I am only able to retain the last unit value Drake. The first two unit values are overridden during transformation.
Need help with the dataweave transformation (XML to JAVA)