> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

# XML

> Learn how to configure your XML flow actions to convert JSON to XML and XML to JSON.

This list of XML actions allows you to convert JSON objects to XML string and XML string to JSON objects.

## Convert JSON to XML

Converts a JSON object to an XML string.

![](https://mintlify.s3.us-west-1.amazonaws.com/docs-dev/images/cdy7uua7fh8z/3GW2EhBMIX3YDPaqc3rXrZ/7706a863700df51376d645a7d9292a27/convertjsontoxml.png)

### Input settings

| Parameter | Description |
| - | - |
| JSON (required) | The JSON object that will be converted to an XML string. |

### Output object

| Property | Type | Description |
| - | - | - |
| `xml` | String | The converted XML string. |

### Output object example

```json lines theme={null}
{
  "xml": "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<name>John Doe</name>"
}
```

## Convert XML to JSON

Converts a XML string to a JSON object.

![](https://mintlify.s3.us-west-1.amazonaws.com/docs-dev/images/cdy7uua7fh8z/42fO7BelEN4bnlUj70WhV8/e53ada552f7cc05c192466db4777471a/covertxmltojson.png)

### Input settings

| Parameter | Description |
| - | - |
| XML (required) | The XML string that will be converted to a JSON object. |

### Output object

| Property | Type | Description |
| - | - | - |
| `object` | Object | The converted JSON object. |

### Output object example

```json lines theme={null}
{
  "object": {
    "name": "John Doe"
  }
}
```

##
