AW: Extract text from XML, pay attention to XML Entities

From: Färber, Franz-Josef (StMUK) <Franz-Josef(dot)Faerber(at)stmuk(dot)bayern(dot)de>
To: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
Cc: "pgsql-general(at)lists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: AW: Extract text from XML, pay attention to XML Entities
Date: 2026-09-29 13:12:49
Message-ID: ed1a375c6fe6475892ac1e222cb463bd@stmuk.bayern.de
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hello David,

Thanks for your reply.

It’s just strange and unfortunate that

a) Postgres does not offer a simple solution
b) Postgres had indeed offered a simple solution, xml_string, in the xml2 extension, which is deprecated (and won't deal with namespaces).

Regards,
Franz-Josef Färber

Von: David G. Johnston <david(dot)g(dot)johnston(at)gmail(dot)com>
Gesendet: Montag, 28. September 2026 09:27
An: Färber, Franz-Josef (StMUK) <Franz-Josef(dot)Faerber(at)stmuk(dot)bayern(dot)de>
Cc: pgsql-general(at)lists(dot)postgresql(dot)org
Betreff: Extract text from XML, pay attention to XML Entities

On Monday, September 28, 2026, Färber, Franz-Josef (StMUK) <Franz-Josef(dot)Faerber(at)stmuk(dot)bayern(dot)de<mailto:Franz-Josef(dot)Faerber(at)stmuk(dot)bayern(dot)de>> wrote:
*ping* anybody interested to reply? Thank You.

I suspect you’ve framed this up fully and correctly and are left with choosing whichever of your last resorts you deem least offensive. I’d probably go with a custom text transformer personally; though why you need to do this, the risks involved, tend to matter for such decisions.

David J.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message sutyak 2026-09-29 14:09:58 Building PostgreSQL 18 with OpenSSL in Windows with Meson
Previous Message Laurenz Albe 2026-09-28 12:58:33 Re: PostgreSQL license inquiry: source code disclosure obligations for commercial redistribution