# Creating the Route

Create a Route with an input file, headers, a cMap component and an output file.

## Procedure

1. Open the Integration perspective, right-click the Route Designs node and click Create Route.
2. Enter a name, purpose and description for your Route, then click Finish.
3. Add the following components to your design workspace and link them with Row &gt; Route connections:
   * A cFile
   * A cSetHeader
   * A cMap
   * A second cFile

   Your Route should look like this: ![](https://help.qlik.com/talend/en-US/data-mapper-user-guide/Resources/images/create_route_01_components.png)
4. Double-click the first cFile and set the path and file name for your input XML file.
   ### Example

   ![](https://help.qlik.com/talend/en-US/data-mapper-user-guide/Resources/images/create_route_02_cfile.png)
5. Double-click the cSetHeader and add the following headers:
   | Name | Language | Value |
   | --- | --- | --- |
   | "Account\_Website" | Constant | "www.company.com" |
   | "Account\_Phone" | Constant | "(555)555-5555" |
6. Double-click the second cFile and set the path and file name for your output JSON file.
7. Double-click the cMap and follow the wizard to generate the map.
   1. In the first step, select the input structure you created in [Creating the input structure for your Route](https://help.qlik.com/talend/en-US/data-mapper-user-guide/8.0/creating-input-structure-for-your-route) and click Next
   2. In the second step, select the output structure you created in [Creating the output structure for your Route](https://help.qlik.com/talend/en-US/data-mapper-user-guide/8.0/creating-output-structure-for-your-route) and click Finish.

## Results

The map is generated using the input and output structures previously created. You can now map the elements. ![](https://help.qlik.com/talend/en-US/data-mapper-user-guide/Resources/images/create_route_03_map.png)