<employees>
<employee>
<firstname>Mariano</firstname>
<lastname>DeAchaval</lastname>
</employee>
<employee>
<firstname>Leandro</firstname>
<lastname>Shokida</lastname>
</employee>
</employees>
DataWeave (dw) Format
MIME type: application/dw
ID: dw
The DataWeave (dw) format is the canonical format for all transformations. This format can help you understand how input data is interpreted before it is transformed to a new format.
This format is intended to help you debug the results of DataWeave transformations. It is significantly slower than other formats. It is not recommended to be used in production applications because it can impact the performance. |
Example: Express XML in the DataWeave (dw) Format
The following example shows how to transform XML input to the DataWeave (dw) format.
Configuration Properties
DataWeave supports the following configuration properties for this format.
Reader Properties
This format accepts properties that provide instructions for reading input data.
Parameter | Type | Default | Description |
---|---|---|---|
|
|
|
Enables the Valid values are |
|
|
|
Enables Java module functions to load. Valid values are |
|
|
|
Handles only data and not other types of content, such as functions, when set to Valid values are |
|
|
|
Accepts a comma-separated list of privileges to use in the format, such as |
Writer Properties
This format accepts properties that provide instructions for writing output data.
Parameter | Type | Default | Description |
---|---|---|---|
|
|
|
Size of the buffer writer. |
|
|
|
Generates the output as a data stream when set to Valid values are |
|
|
|
Ignores the schema when set to Valid values are |
|
|
|
String to use for indenting. |
|
|
|
Maximum number of elements allowed in an array or an object. |
|
|
|
Handles only data and not other types of content, such as functions, when set to Valid values are |