Skip to main content

Need help in transforming JSON array payload to XML in dataeave 1.0

 

Input Sample:

 

{

 "dailyItem": [

  "bike",

  "perfume",

  "Bag"

 ],

 "otherItem": "Laptop"

}

 

Expected Output :

 

<Mygoods>

 

<Items>

 

<dailyItem> bike</dailyItem>

<dailyItem>perfume </dailyItem>

<dailyItem> bag</dailyItem>

 

<otherItem>laptop</otherItem>

 

<Items>

 

</Mygoods>

0/9000