mirror of
https://github.com/postgres/postgres.git
synced 2025-11-22 12:22:45 +03:00
Support [NO] INDENT option in XMLSERIALIZE().
This adds the ability to pretty-print XML documents ... according to libxml's somewhat idiosyncratic notions of what's pretty, anyway. One notable divergence from a strict reading of the spec is that libxml is willing to collapse empty nodes "<node></node>" to just "<node/>", whereas SQL and the underlying XML spec say that this option should only result in whitespace tweaks. Nonetheless, it seems close enough to justify using the SQL-standard syntax. Jim Jones, reviewed by Peter Smith and myself Discussion: https://postgr.es/m/2f5df461-dad8-6d7d-4568-08e10608a69b@uni-muenster.de
This commit is contained in:
@@ -621,7 +621,7 @@ X061 XMLParse: character string input and DOCUMENT option YES
|
||||
X065 XMLParse: binary string input and CONTENT option NO
|
||||
X066 XMLParse: binary string input and DOCUMENT option NO
|
||||
X068 XMLSerialize: BOM NO
|
||||
X069 XMLSerialize: INDENT NO
|
||||
X069 XMLSerialize: INDENT YES
|
||||
X070 XMLSerialize: character string serialization and CONTENT option YES
|
||||
X071 XMLSerialize: character string serialization and DOCUMENT option YES
|
||||
X072 XMLSerialize: character string serialization YES
|
||||
|
||||
Reference in New Issue
Block a user