BlackFriday 2024! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

MuleSoft Exam MCD-Level-1 Topic 6 Question 36 Discussion

Actual exam question for MuleSoft's MCD-Level-1 exam
Question #: 36
Topic #: 6
[All MCD-Level-1 Questions]

What DataWeave expression transforms the array a to the XML output?

Show Suggested Answer Hide Answer
Suggested Answer: A

For such questions always look for Syntax:

I call it 'Wrap the Map'

trains:

{(

When mapping array elements (JSON or JAVA) to XML, wrap the map operations in {(..)}

-{ } are defining the object

-( ) are transforming each element in the array as a key/value pair


Contribute your Thoughts:

Currently there are no comments in this discussion, be the first to comment!


Save Cancel