Re: [PATCH] Add pretty-printed XML output option
От | Tom Lane |
---|---|
Тема | Re: [PATCH] Add pretty-printed XML output option |
Дата | |
Msg-id | 3057762.1678836321@sss.pgh.pa.us обсуждение исходный текст |
Ответ на | Re: [PATCH] Add pretty-printed XML output option (Jim Jones <jim.jones@uni-muenster.de>) |
Ответы |
Re: [PATCH] Add pretty-printed XML output option
|
Список | pgsql-hackers |
Jim Jones <jim.jones@uni-muenster.de> writes: > On 14.03.23 18:40, Tom Lane wrote: >> I poked at this for awhile and ran into a problem that I'm not sure >> how to solve: it misbehaves for input with embedded DOCTYPE. > The issue was the flag XML_SAVE_NO_EMPTY. It was forcing empty elements > to be serialized with start-end tag pairs. Removing it did the trick ... > ... but as a side effect empty start-end tags will be now serialized as > empty elements > postgres=# SELECT xmlserialize(CONTENT '<foo><bar></bar></foo>' AS text > INDENT); > xmlserialize > -------------- > <foo> + > <bar/> + > </foo> > (1 row) Huh, interesting. That is a legitimate pretty-fication of the input, I suppose, but some people might think it goes beyond the charter of "indentation". I'm okay with it personally; anyone want to object? regards, tom lane
В списке pgsql-hackers по дате отправления: