↑↓ select ↵ open ⌫ change scope Open full search

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

Functions / Xml Functions

The function xpath evaluates the XPath 1.0 expression xpath (given as text) against the XML value xml.

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

Signatures & examples

xpath ( xpath text, xml xml [, nsarray text[]] ) → xml[]
The function xpath evaluates the XPath 1.0 expression xpath (given as text) against the XML value xml. It returns an array of XML values corresponding to the node-set produced by the XPath expression. If the XPath expression returns a scalar value rather than a node-set, a single-element array is returned.
Version history 5
  1. 12 → 13 changed
  2. 9.6 → 10 changed
  3. 9.1 → 9.2 changed
  4. 9.0 → 9.1 changed
  5. 8.2 → 8.3 added

Definition snapshot: b7bd9cda · English manual source