Documentazione Invantiveparte di invantive cloud
Forum di supporto InvantiveAccedi / Registrati

XMLCOMMENT

Sintassi

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

Scopo

La funzione SQL XMLCOMMENT formatta un testo come commento XML.

Vedi anche XMLDECODE, XMLELEMENT, XMLENCODE, XMLFORMAT e XMLTRANSFORM.

Parametri:

  • Input (varchar2): l'input che verrà formattato come commento XML.

Risultati: un testo contenente l'input sotto forma di commento XML.

Esempi

L'esempio seguente imposta il testo a -b c come commento XML:

select xmlcomment('a -b c')

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

L'esempio seguente formatta il testo a --b c come commento XML, separando il doppio trattino, che non è consentito all'interno di un commento XML:

select xmlcomment('a --b c')

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