Re: XMLSerialize: version and explicit XML declaration

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: Jim Jones <jim.jones@uni-muenster.de>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>, Vik Fearing <vik@postgresfriends.org>, Chapman Flack <chap@anastigmatix.net>
Date: 2024-09-25T16:02:47Z
Lists: pgsql-hackers
Jim Jones <jim.jones@uni-muenster.de> writes:
> Is there any validation mechanism for VERSION <character string
> literal>?

AFAICS, all we do with an embedded XML version string is pass it to
libxml2's xmlNewDoc(), which is the authority on whether it means
anything.  I'd be inclined to do the same here.

			regards, tom lane