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

XMLCOMMENT

Sintaxis

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

Propósito

La función SQL XMLCOMMENT formatea un texto como un comentario XML.

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

Parámetros:

  • Entrada (varchar2): la entrada que se formateará como comentario XML.

Devuelve: Un texto con la entrada como comentario XML.

Ejemplos

En el siguiente ejemplo se formatea el texto a -b c como un comentario XML:

select xmlcomment('a -b c')

-------------------
<!-- a -b c -->

En el siguiente ejemplo se formatea el texto a --b c como un comentario XML, separando el doble guión, que no está permitido dentro de un comentario XML:

select xmlcomment('a --b c')

-------------------
<!-- a - -b c -->