> ## Documentation Index
> Fetch the complete documentation index at: https://docs-staging-actions-triggers-prototype.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# XML

> Découvrez comment configurer vos actions de flux XML pour convertir JSON en XML et XML en JSON.

Cette liste d’actions XML vous permet de convertir des objets JSON en chaîne XML et des chaînes XML en objets JSON.

## onvertir JSON en XML

Convertit un objet JSON en chaîne XML.

<Frame>
  <img src="https://mintcdn.com/docs-staging-actions-triggers-prototype/nrwDtDubgCTKYymj/docs/images/fr-ca/cdy7uua7fh8z/3GW2EhBMIX3YDPaqc3rXrZ/7706a863700df51376d645a7d9292a27/convertjsontoxml.png?fit=max&auto=format&n=nrwDtDubgCTKYymj&q=85&s=03d2e35021b04b4d27c4e3da7dc9fb23" alt="" width="765" height="292" data-path="docs/images/fr-ca/cdy7uua7fh8z/3GW2EhBMIX3YDPaqc3rXrZ/7706a863700df51376d645a7d9292a27/convertjsontoxml.png" />
</Frame>

### Paramètres de saisie

| Paramètre          | Description                                   |
| ------------------ | --------------------------------------------- |
| JSON (obligatoire) | L’objet JSON qui sera converti en chaîne XML. |

### Objet de sortie

| Propriété | Type   | Description              |
| --------- | ------ | ------------------------ |
| `xml`     | Chaîne | La chaîne XML convertie. |

### Exemple d’objet de sortie

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

## Convertir XML en JSON

Convertit une chaîne XML en objet JSON.

<Frame>
  <img src="https://mintcdn.com/docs-staging-actions-triggers-prototype/5BJFQFUy0iyEKuQH/docs/images/fr-ca/cdy7uua7fh8z/42fO7BelEN4bnlUj70WhV8/e53ada552f7cc05c192466db4777471a/covertxmltojson.png?fit=max&auto=format&n=5BJFQFUy0iyEKuQH&q=85&s=f5f3ab307b0eea04eae7809e8da65782" alt="" width="776" height="295" data-path="docs/images/fr-ca/cdy7uua7fh8z/42fO7BelEN4bnlUj70WhV8/e53ada552f7cc05c192466db4777471a/covertxmltojson.png" />
</Frame>

### Paramètres de saisie

| Paramètre         | Description                                     |
| ----------------- | ----------------------------------------------- |
| XML (obligatoire) | La chaîne XML qui sera convertie en objet JSON. |

### Objet de sortie

| Propriété | Type  | Description            |
| --------- | ----- | ---------------------- |
| `object`  | Objet | L'objet JSON converti. |

### Exemple d’objet de sortie

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

##
