---
schema_version: "1"
id: 5e6f2e88faae3284bc792e08a4ac50697dbdaecaf460ca34a940d8f87374ae7f
title: Move Transformation to Separate Files (Anypoint Studio)
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/mule-runtime/4.3/transform-move-transformations-separate-file-studio-task.md
canonical_url: https://docs.mulesoft.com/mule-runtime/4.3/transform-move-transformations-separate-file-studio-task
source_site: docs.mulesoft.com
content_type: documentation
content_hash: f1844c5ab33383fc5a6138edc1a3cbe978ce7eb0c709805ac8b1fbf1792584fe
description: MuleSoft Documentation Site
release: "4.3"
latest: false
---
---
product: Mule Runtime
version: 4.3
---

# Move Transformation to Separate Files (Anypoint Studio)

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

By default, the DataWeave code from a Transform Message component is expressed inline within your
Mule XML file. You can instead keep each in a separate file ( `.dwl` ) and have your XML reference
them. These files are packaged with your Mule application when built.

To export the DataWeave code to a `.dwl` file:

1.  Click the **Edit Current Target** button.

    ![edit target](/mulesoft/current/en-us/mule-runtime/4.3/_images/dw-multiple-outputs-edit.png)

2.  Select the **File** radio button.

    ![external file 2](/mulesoft/current/en-us/mule-runtime/4.3/_images/dataweave-externalfile2.png)

    - Type a name for your `.dwl` file.

    - Click **OK**.

A file is created under the `src/main/resources` folder in your project containing your DataWeave
code.

## See Also

[DataWeave Language](https://docs.mulesoft.com/mule-runtime/4.3/dataweave)

[Transform Message Component](https://docs.mulesoft.com/mule-runtime/4.3/transform-component-about)
