xml2
XPath querying and XSLT
xml2 : XPath querying and XSLT
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 3990 | xml2 | xml2 | 1.1 |
TYPE | PostgreSQL | C |
| Attribute | Has Binary | Has Library | Need Load | Has DDL | Relocatable | Trusted |
|---|---|---|---|---|---|---|
| ----d-- | No | No | No | Yes | no | no |
Packages
| PG18 | PG17 | PG16 | PG15 | PG14 |
|---|---|---|---|---|
| 1.1 | 1.1 | 1.1 | 1.1 | 1.1 |
This is a built-in contrib extension ship with the PostgreSQL kernel
Install
Create this extension with:
Usage
The xml2 extension provides XPath querying and XSLT transformation functions for XML documents. Note: this module is deprecated in favor of the core SQL/XML functionality.
XML Validation
XPath Query Functions
xpath_table Function
Evaluate multiple XPath queries across a set of documents:
Parameters:
- Key field name (first output column)
- XML document field name
- Table/view name
- XPath expressions separated by
| - WHERE clause (use
'true'for all rows)