---
title: "XMLCOMMENT"
description: "Die SQL-Funktion XMLCOMMENT formatiert einen Text als XML-Kommentar."
language: de
source_language: en
translation_state: complete
canonical: https://documentation.invantive.eu/de/docs/invantive-universalsql/grammar/sql-functions/xmlcomment
original: https://documentation.invantive.eu/en/docs/invantive-universalsql/grammar/sql-functions/xmlcomment
updated: 2026-12-04T14:54:46Z
license: https://documentation.invantive.eu/de/
---

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

## Anwendung
Die SQL-Funktion `XMLCOMMENT` formatiert einen Text als XML-Kommentar.

Siehe auch [[XMLDECODE]], [[XMLELEMENT]], [[XMLENCODE]], [[XMLFORMAT]] und [[XMLTRANSFORM]].

Parameter:
- Eingabe (`varchar2`): Die Eingabe, die als XML-Kommentar formatiert wird.

Gibt zurück: Einen Text, in dem die Eingabe als XML-Kommentar enthalten ist.

## Beispiele
Im folgenden Beispiel wird der Text `a -b c` als XML-Kommentar formatiert:
```sql
select xmlcomment('a -b c')

-------------------
<!-- a -b c -->
```
Im folgenden Beispiel wird der Text `a --b c` als XML-Kommentar formatiert, wobei der doppelte Bindestrich, der in einem XML-Kommentar nicht zulässig ist, getrennt wird:
```sql
select xmlcomment('a --b c')

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

