Re: XMLDocument (SQL/XML X030)

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Jim Jones <jim(dot)jones(at)uni-muenster(dot)de>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: XMLDocument (SQL/XML X030)
Date: 2024-12-10 13:59:11
Message-ID: 73dea15c-aec9-45b5-adf7-33d9a708a576@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


On 2024-12-10 Tu 2:48 AM, Jim Jones wrote:
> On 04.12.24 17:18, Jim Jones wrote:
>> I'd like to propose the implementation of XMLDocument (SQL/XML X030).
>> It basically returns an XML document from a given XML expression, e.g.
>>
>> SELECT
>>   xmldocument(
>>     xmlelement(NAME foo,
>>       xmlattributes(42 AS att),
>>       xmlelement(NAME bar,
>>         xmlconcat('va', 'lue'))
>>     )
>>   );
>>
>>              xmldocument
>> --------------------------------------
>>  <foo att="42"><bar>value</bar></foo>
>> (1 row)
> v1 attached attempts to implement XMLDocument() as described above.
>
> Feedback welcome.
>

LGTM at a first glance.

Please add this to the next CommitFest if you haven't done already.

cheers

andrew

--
Andrew Dunstan
EDB: https://www.enterprisedb.com

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2024-12-10 14:00:07 Re: Fix bank selection logic in SLRU
Previous Message Dilip Kumar 2024-12-10 13:58:29 Re: Fix bank selection logic in SLRU