Re: [PATCH] Add XMLText function (SQL/XML X038) - Mailing list pgsql-hackers

From Pavel Stehule
Subject Re: [PATCH] Add XMLText function (SQL/XML X038)
Date
Msg-id CAFj8pRDMo4=oiCRktFbW5AkP--Fk-WKRdBD+Exi0CF=96AdP=A@mail.gmail.com
Whole thread Raw
In response to [PATCH] Add XMLText function (SQL/XML X038)  (Jim Jones <jim.jones@uni-muenster.de>)
Responses Re: [PATCH] Add XMLText function (SQL/XML X038)  (Jim Jones <jim.jones@uni-muenster.de>)
List pgsql-hackers


so 25. 3. 2023 v 12:49 odesílatel Jim Jones <jim.jones@uni-muenster.de> napsal:
Hi,

This small patch proposes the implementation of the standard SQL/XML
function XMLText (X038). It basically converts a text parameter into an
xml text node. It uses the libxml2 function xmlEncodeSpecialChars[1] to
escape possible predefined entities.

This patch also contains documentation and regression tests.

Any thoughts?

+1

Pavel


Best, Jim

1 -
https://gnome.pages.gitlab.gnome.org/libxml2/devhelp/libxml2-entities.html#xmlEncodeSpecialChars

pgsql-hackers by date:

Previous
From: Jim Jones
Date:
Subject: [PATCH] Add XMLText function (SQL/XML X038)
Next
From: Jim Jones
Date:
Subject: Re: [PATCH] Add XMLText function (SQL/XML X038)