---
title: "XMLDECODE"
description: "La fonction SQL XMLDECODE renvoie l\u0027entr\u00E9e XML d\u00E9cod\u00E9e."
language: fr
source_language: en
translation_state: complete
canonical: https://documentation.invantive.eu/fr/docs/invantive-universalsql/grammar/sql-functions/xmldecode
original: https://documentation.invantive.eu/en/docs/invantive-universalsql/grammar/sql-functions/xmldecode
updated: 2026-12-04T14:55:14Z
license: https://documentation.invantive.eu/fr/
---

## Syntaxe
```mermaid
%%{init: {
  'theme': 'base',
  'flowchart': { 'padding': '7', 'nodeSpacing': '20', 'rankSpacing': '20' },
  'themeVariables': {
    'fontSize': '11px',
    'fontFamily': 'Arial'
  }
}}%%
flowchart LR
    Start((START)) --> XMLDECODE[XMLDECODE]:::quoted
    XMLDECODE --> End((END))
```

## Objet
La fonction SQL `XMLDECODE` renvoie la donnée d'entrée décodée au format XML.

Voir aussi [[XMLCOMMENT]], [[XMLELEMENT]], [[XMLENCODE]], [[XMLFORMAT]] et [[XMLTRANSFORM]].

Paramètres :
- Élément `varchar2` : l'élément qui sera décodé au format XML.

Retourne : un objet correspondant à l'entrée décodée au format XML.

## Exemples
L'exemple suivant décode le texte encodé en XML `John &amp; CO` :
```sql
select xmldecode('John &amp; CO')

-------------------
John & CO
```
L'exemple suivant décode le texte encodé en XML `65/20&lt;5%` :
```sql
select xmldecode('65/20&lt;5%')

-------------------
65/20<5%
```

