↑↓ select ↵ open ⌫ change scope Open full search

PG.CENTER connects PostgreSQL documentation, reference, and ecosystem knowledge. Maintained by Pigsty.

Functions / Xml Functions

The xmlroot expression alters the properties of the root node of an XML value.

Reading PG 18current·documented in 20 of 27 versions, 8.3 to 20

Signatures & examples

xmlroot ( xml, VERSION {text|NO VALUE} [, STANDALONE {YES|NO|NO VALUE} ] ) → xml
The xmlroot expression alters the properties of the root node of an XML value. If a version is specified, it replaces the value in the root node's version declaration; if a standalone setting is specified, it replaces the value in the root node's standalone declaration.
Version history 3
  1. 12 → 13 changed
  2. 8.3 → 8.4 changed
  3. 8.2 → 8.3 added

Definition snapshot: b7bd9cda · English manual source