# Using a map in a Route

Create a Route to map an XML input with headers to a JSON output.

## About this task

In this example you have an XML file containing information about an account. The goal is to convert it to a JSON file and to retrieve the missing Website and Phone values from headers. This example uses the following XML sample as input:

```
<Account>
    <ID>1</ID>
    <Company_Name>XYZ INC.</Company_Name>
    <Industry>Sales</Industry>
    <Website/>
    <Address1>3320 TATES CREEK RD</Address1>
    <Address2>SUITE 204</Address2>
    <City>LEXINGTON</City>
    <State>K</State>
    <Postal_Code>40502</Postal_Code>
    <Country_ISO3>USA</Country_ISO3>
    <Phone/>
</Account>
```

### In this section

* [Creating the input structure for your Route](https://help.qlik.com/talend/en-US/data-mapper-user-guide/8.0-R2026-03/creating-input-structure-for-your-route)
* [Creating the output structure for your Route](https://help.qlik.com/talend/en-US/data-mapper-user-guide/8.0-R2026-03/creating-output-structure-for-your-route)
* [Creating the Route](https://help.qlik.com/talend/en-US/data-mapper-user-guide/8.0-R2026-03/creating-route)
* [Mapping the elements for your Route](https://help.qlik.com/talend/en-US/data-mapper-user-guide/8.0-R2026-03/mapping-elements-for-your-route)