> ## Documentation Index
> Fetch the complete documentation index at: https://docs-dev-feat-sdk-reference-docs.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

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

# XML

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

<h2 id="convert-json-to-xml">
  Convertir un objet JSON en XML
</h2>

Convertit un objet JSON en chaîne XML.

<Frame>
  <img src="https://mintcdn.com/docs-dev-feat-sdk-reference-docs/ON-pZCLvus2Xp7h0/docs/images/cdy7uua7fh8z/3GW2EhBMIX3YDPaqc3rXrZ/7706a863700df51376d645a7d9292a27/convertjsontoxml.png?fit=max&auto=format&n=ON-pZCLvus2Xp7h0&q=85&s=80595283932b4cbc23c72bbad45b475e" alt="" width="765" height="292" data-path="docs/images/cdy7uua7fh8z/3GW2EhBMIX3YDPaqc3rXrZ/7706a863700df51376d645a7d9292a27/convertjsontoxml.png" />
</Frame>

<h3 id="input-settings">
  Paramètres d’entrée
</h3>

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

<h3 id="output-object">
  Objet de sortie
</h3>

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

<h3 id="output-object-example">
  Exemple d’objet de sortie
</h3>

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

<h2 id="convert-xml-to-json">
  Convertir XML en JSON
</h2>

Convertit une chaîne XML en un objet JSON.

<Frame>
  <img src="https://mintcdn.com/docs-dev-feat-sdk-reference-docs/ON-pZCLvus2Xp7h0/docs/images/cdy7uua7fh8z/42fO7BelEN4bnlUj70WhV8/e53ada552f7cc05c192466db4777471a/covertxmltojson.png?fit=max&auto=format&n=ON-pZCLvus2Xp7h0&q=85&s=17fe7e0b1b4028ee0748922ec3b80b2b" alt="" width="776" height="295" data-path="docs/images/cdy7uua7fh8z/42fO7BelEN4bnlUj70WhV8/e53ada552f7cc05c192466db4777471a/covertxmltojson.png" />
</Frame>

<h3 id="input-settings-2">
  Paramètres d'entrée
</h3>

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

<h3 id="output-object-2">
  Objet de sortie
</h3>

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

<h3 id="output-object-example-2">
  Exemple d’objet de sortie
</h3>

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

##
