> ## Documentation Index
> Fetch the complete documentation index at: https://auth0-docs-event-stream-action-templates.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

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

# XML

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.

<Frame>
  <img src="https://mintlify.s3.us-west-1.amazonaws.com/auth0-docs-event-stream-action-templates/docs/images/cdy7uua7fh8z/3GW2EhBMIX3YDPaqc3rXrZ/7706a863700df51376d645a7d9292a27/convertjsontoxml.png" alt="" />
</Frame>

### 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.

<Frame>
  <img src="https://mintlify.s3.us-west-1.amazonaws.com/auth0-docs-event-stream-action-templates/docs/images/cdy7uua7fh8z/42fO7BelEN4bnlUj70WhV8/e53ada552f7cc05c192466db4777471a/covertxmltojson.png" alt="" />
</Frame>

### 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"
  }
}
```

##
