|
/ Documentation /Core Features/ Using the XML App in OttoKit

Using the XML App in OttoKit

Working with XML and JSON doesn’t have to mean wrangling with clunky converters or writing your scripts. The XML Core App in OttoKit lets you quickly transform data between XML and JSON right inside your workflows — no extra tools, no manual copy-pasting.

Whether you’re integrating with a service that insists on XML or you need JSON to plug into your existing automation steps, these two actions handle the heavy lifting for you. All you have to do is feed in your data, run a quick test, and you’re good to go.

Actions in the XML Core App

1. Convert XML to JSON

This action takes your XML code and converts it into JSON format, ready to be used in other workflow steps.

To convert XML to JSON:

  1. In your workflow, click Add Step.
  2. In the app search bar, type XML and select it.
  3. From the list of available actions, choose XML to JSON.
  4. Click Continue – this will open the Configure tab.
  5. Fill in the fields:

XML – Paste or type your XML code here. Example:

<Order>

   <OrderID>ORD-10293</OrderID>

   <OrderDate>2025-08-11</OrderDate>

   <Customer>

       <CustomerID>CUST-00123</CustomerID>

       <Name>John Smith</Name>

       <Email>[email protected]</Email>

   </Customer>

   <ShippingAddress>

       <Street>123 Main Street</Street>

       <City>Springfield</City>

       <State>IL</State>

       <PostalCode>62701</PostalCode>

       <Country>USA</Country>

   </ShippingAddress>

   <Items>

       <Item>

           <ProductID>PROD-1001</ProductID>

           <ProductName>Wireless Keyboard</ProductName>

           <Quantity>2</Quantity>

           <Price>29.99</Price>

       </Item>

       <Item>

           <ProductID>PROD-1002</ProductID>

           <ProductName>Wireless Mouse</ProductName>

           <Quantity>1</Quantity>

           <Price>19.99</Price>

       </Item>

   </Items>

   <TotalAmount>79.97</TotalAmount>

   <Status>Processing</Status>

</Order>
AD 4nXeGkm8TIbff K0N0L R1bEk QcTkhl4WqxYH6PxRHil8tZMECBNMxtga0GkkEW M2CVNt2s7dNK6rVXn56eGFPL6lGrgpxfQUF5tr2iVVqxHoK5P9CH 2RF7pstmiAsrsrcnfHoA?key=ag X9yOm1WSmsDEcoqHvTw
  1. Click Continue to move to the Test Step tab.
  2. Click “Test Action” to see your XML converted to JSON. Example output:
AD 4nXd TzrFeEIXTuMW0LmA2hMRrNAgkgd2mOSjG1jScI1g AO4wPxNpHPv3Si6kRnMsZGyAH3aBUNkZ6WEsQcoaWjqeB9vGr3TDrSFI9HfazW VvWDI9TTmHxE XcsNjhmZQQrNUWfOw?key=ag X9yOm1WSmsDEcoqHvTw
  1. If the output looks correct, click Save.

2. Convert JSON to XML

This action takes your JSON and converts it into XML format — perfect for APIs or systems that require XML.

To convert JSON to XML:

  1. In your workflow, click Add Step.
  2. Search for XML and select it.
  3. From the list of actions, choose JSON to XML.
  4. Click Continue – this opens the Configure tab.
  5. Fill in the fields:

JSON – Paste or type your JSON code here. Example:

{

  "Order": {

    "OrderID": "ORD-10293",

    "OrderDate": "2025-08-11",

    "Customer": {

      "CustomerID": "CUST-00123",

      "Name": "John Smith",

      "Email": "[email protected]"

    },

    "ShippingAddress": {

      "Street": "123 Main Street",

      "City": "Springfield",

      "State": "IL",

      "PostalCode": "62701",

      "Country": "USA"

    },

    "Items": [

      {

        "ProductID": "PROD-1001",

        "ProductName": "Wireless Keyboard",

        "Quantity": 2,

        "Price": 29.99

      },

      {

        "ProductID": "PROD-1002",

        "ProductName": "Wireless Mouse",

        "Quantity": 1,

        "Price": 19.99

      }

    ],

    "TotalAmount": 79.97,

    "Status": "Processing"

  }

}
AD 4nXc0VcZJ3VhnXUTc715GUUd0is8 VphhpTNEDxArEUasgKeKJI7XKOk7s0c9mK Lo8kfWfUSPVWi6iAcyTptb1KdThJMLVS Rj8sFEM7gXAh0U8OyeG8mBppZKtcc1tGKuzmbaX2?key=ag X9yOm1WSmsDEcoqHvTw
  1. Click Continue to move to the Test Step tab.
  2. Click “Test Action” to see your JSON converted to XML. Example output:
AD 4nXfRb7 Ae3RNobrq6AlcsqX 0Va5YPxvqVLaIshaCrUEEhz55bm0NyHrEyRjrHJfjrIe30YlYyVtqHKQo6bXdu5Kp RTcKhQNKO87TkoG4NufHkAlGHYZi48I6A0uIxE1bZkTjoQ8g?key=ag X9yOm1WSmsDEcoqHvTw
  1. If the output is correct, click Save.

That’s All

With the XML Core App in OttoKit, you don’t need to juggle external tools or messy converters anymore. Whether you’re turning XML into JSON for smoother automation or generating XML from JSON for system compatibility, OttoKit takes care of the heavy lifting in just a few clicks.

Start adding these actions to your workflows today and simplify how your data flows across apps.

Was this doc helpful?
What went wrong?

We don't respond to the article feedback, we use it to improve our support content.

Need help? Contact Support
On this page
Scroll to Top