---
title: "XMLENCODE"
description: "De SQL-functie XMLENCODE retourneert de XML-gecodeerde invoer."
language: nl
source_language: en
translation_state: complete
canonical: https://documentation.invantive.eu/nl/docs/invantive-universalsql/grammar/sql-functions/xmlencode
original: https://documentation.invantive.eu/en/docs/invantive-universalsql/grammar/sql-functions/xmlencode
updated: 2026-12-02T12:11:54Z
license: https://documentation.invantive.eu/nl/
---

## Syntax
```mermaid
%%{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))
```

## Doel
De SQL-functie `XMLENCODE` geeft de XML-gecodeerde invoer terug.

Zie ook [[XMLCOMMENT]], [[XMLDECODE]], [[XMLELEMENT]], [[XMLFORMAT]] en [[XMLTRANSFORM]].

Parameters:
- Invoer (`varchar2`, `decimal` of `datetime`): de invoer die in XML wordt gecodeerd.

Retourwaarden: Een object dat de XML-gecodeerde invoer bevat.

## Voorbeelden
In het volgende voorbeeld wordt de tekst `John & CO` gecodeerd:
```sql
select xmlencode('John & CO')

-------------------
John &amp; CO
```
In het volgende voorbeeld wordt de tekst `65/20<5%` gecodeerd:
```sql
select xmlencode('65/20<5%')

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

