Documentación de Invantiveparte de Invantive Cloud
Foros de Soporte de InvantiveIniciar Sesión / Registrarse

XMLENCODE

Sintaxis

%%{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))

Propósito

La función SQL XMLENCODE devuelve la entrada codificada en XML.

Véase también XMLCOMMENT, XMLDECODE, XMLELEMENT, XMLFORMAT y XMLTRANSFORM.

Parámetros:

  • Entrada (varchar2, decimal o datetime): la entrada que se codificará en XML.

Devuelve: Un objeto que representa la entrada codificada en XML.

Ejemplos

El siguiente ejemplo codifica el texto John & CO:

select xmlencode('John & CO')

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

El siguiente ejemplo codifica el texto 65/20<5%:

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

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