<employees>
<employee>
<firstname>Mariano</firstname>
<lastname>DeAchaval</lastname>
</employee>
<employee>
<firstname>Leandro</firstname>
<lastname>Shokida</lastname>
</employee>
</employees>
DataWeave Format (dw)
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 the DataWeave (dw) format.
Reader Properties (for dw)
The DataWeave (dw) format accepts properties that provide instructions for reading input data.
Parameter | Type | Default | Description |
---|---|---|---|
|
|
|
Enables reading external entities on |
|
|
|
Enables you to load Java module functions. Valid options are |
|
|
|
Indicates whether to handle data only and not other types of content, such as functions. Valid options are |
Writer Properties (for dw)
The DataWeave (dw) format accepts properties that provide instructions for writing output data.
Parameter | Type | Default | Description |
---|---|---|---|
|
|
|
Size of the writer buffer. |
|
|
|
When set to |
|
|
|
Flag that indicates whether the DataWeave writer
ignores the schema. Valid values are |
|
|
|
The string to use for indentation. |
|
|
|
The maximum number of elements allowed
in an array or object. |
|
|
|
Indicates whether to handle data only and not other types of content, such as functions. Valid options are |