Re: [PATCH] Add CANONICAL option to xmlserialize
Jim Jones <jim.jones@uni-muenster.de>
From: Jim Jones <jim.jones@uni-muenster.de>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Pavel Stehule <pavel.stehule@gmail.com>,
Chapman Flack <chap@anastigmatix.net>, vignesh C <vignesh21@gmail.com>,
Thomas Munro <thomas.munro@gmail.com>,
PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>,
Vik Fearing <vik@postgresfriends.org>
Date: 2024-09-12T10:56:32Z
Lists: pgsql-hackers
Attachments
- v14-0001-Add-xmlcanonicalize-function.patch (text/x-patch) patch v14-0001
On 10.09.24 19:43, Tom Lane wrote: > How about instead introducing a plain function along the lines of > "xml_canonicalize(xml, bool keep_comments) returns text" ? The SQL > committee will certainly never do that, but we won't regret having > created a plain function whenever they get around to doing something > in the same space. A second function to serialize xml documents may sound a bit redundant, but I totally understand the concern of possibly conflicting with SQL/XMl spec in the feature. I guess we can always come back here and extend xmlserialize when the SQL committee moves in this direction. v14 attached adds the function xmlcanonicalize, as suggested. Thanks -- Jim