Documentation Invantiveune partie de Invantive cloud
Forums d'Invantive SupportConnectez-vous/inscrivez-vous

XMLENCODE

Syntaxe

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

Objet

La fonction SQL XMLENCODE renvoie la donnée d'entrée encodée au format XML.

Voir aussi XMLCOMMENT, XMLDECODE, XMLELEMENT, XMLFORMAT et XMLTRANSFORM.

Paramètres :

  • Entrée (varchar2, decimal ou datetime) : l'entrée qui sera encodée au format XML.

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

Exemples

L'exemple suivant encode le texte John & CO :

select xmlencode('John & CO')

-------------------
John & CO

L'exemple suivant encode le texte 65/20<5% :

select xmlencode('65/20<5%')

-------------------
65/20&lt;5%