invantive-dokumentasjondel av invantive cloud
Invantive StøtteforumLogg inn / registrer deg

XMLENCODE

Syntaks

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

Formål

The XMLENCODE SQL function returns the XML encoded input.

See also XMLCOMMENT, XMLDECODE, XMLELEMENT, XMLFORMAT and XMLTRANSFORM.

Parametere:

  • Input (varchar2, decimal or datetime): the input which will be encoded into XML.

Returns: An object which is the XML encoded input.

Eksempler

The following example encodes the text John & CO:

select xmlencode('John & CO')

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

The following example encodes the text 65/20<5%:

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

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