Re: BUG #16277: xmlelement allows invalid XML characters when XML version is set to 1.0 - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #16277: xmlelement allows invalid XML characters when XML version is set to 1.0
Date
Msg-id 27912.1582660793@sss.pgh.pa.us
Whole thread Raw
In response to BUG #16277: xmlelement allows invalid XML characters when XML version is set to 1.0  (PG Bug reporting form <noreply@postgresql.org>)
Responses Re: BUG #16277: xmlelement allows invalid XML characters when XMLversion is set to 1.0  (Andreas Lennartsson <andreas@apkudo.com>)
List pgsql-bugs
PG Bug reporting form <noreply@postgresql.org> writes:
> The following example:
> SELECT
>   xmlroot (
>      xmlelement (name "test", CHR(26))
>   , version '1.0'
>   )

> Produces xml with the invalid ASCII character 26.

On what grounds do you call it invalid?  What other behavior
would you expect?

            regards, tom lane



pgsql-bugs by date:

Previous
From: PG Bug reporting form
Date:
Subject: BUG #16277: xmlelement allows invalid XML characters when XML version is set to 1.0
Next
From: Tom Lane
Date:
Subject: Re: planner weirdness: a join uses nestloop with checking condition when there are two subplan-or-hashed subqueries