Skip to main content Skip to complementary content
Close announcements banner

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>

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!