diff -U3 /build/postgresql/src/postgresql-16.3/src/test/regress/expected/xml.out /build/postgresql/src/postgresql-16.3/src/test/regress/results/xml.out --- /build/postgresql/src/postgresql-16.3/src/test/regress/expected/xml.out 2024-06-30 18:20:22.000000000 +0000 +++ /build/postgresql/src/postgresql-16.3/src/test/regress/results/xml.out 2024-06-30 18:22:04.688198351 +0000 @@ -254,23 +254,13 @@ DETAIL: line 1: xmlParseEntityRef: no name & ^ -line 1: chunk is not well balanced -& - ^ SELECT xmlparse(content '&idontexist;'); ERROR: invalid XML content DETAIL: line 1: Entity 'idontexist' not defined &idontexist; ^ -line 1: chunk is not well balanced -&idontexist; - ^ SELECT xmlparse(content ''); - xmlparse ---------------------------- - -(1 row) - +ERROR: invalid XML content SELECT xmlparse(content ''); xmlparse -------------------------------- @@ -285,15 +275,8 @@ line 1: Opening and ending tag mismatch: twoerrors line 1 and unbalanced &idontexist; ^ -line 1: chunk is not well balanced -&idontexist; - ^ SELECT xmlparse(content ''); - xmlparse ---------------------- - -(1 row) - +ERROR: invalid XML content SELECT xmlparse(document ' '); ERROR: invalid XML document DETAIL: line 1: Start tag expected, '<' not found @@ -525,25 +508,18 @@ SELECT xmlserialize(DOCUMENT '7342' AS text INDENT); ERROR: not an XML document SELECT xmlserialize(CONTENT '7342' AS text INDENT); - xmlserialize ------------------------ - 73 + - + - 42+ - + xmlserialize +--------------- + 73 (1 row) -- indent non singly-rooted xml with mixed contents SELECT xmlserialize(DOCUMENT 'text node73text node42' AS text INDENT); ERROR: not an XML document SELECT xmlserialize(CONTENT 'text node73text node42' AS text INDENT); - xmlserialize ------------------------- - text node + - 73text node+ - + - 42 + - + xmlserialize +-------------- + text node (1 row) -- indent singly-rooted xml with mixed contents @@ -1209,15 +1185,13 @@ -- error messages, we suppress the DETAIL in this test. \set VERBOSITY terse SELECT xpath('/*', ''); -ERROR: could not parse XML document +ERROR: invalid XML content at character 20 \set VERBOSITY default -- Again, the XML isn't well-formed for namespace purposes SELECT xpath('/*', ''); -ERROR: could not parse XML document -DETAIL: line 1: Namespace prefix nosuchprefix on tag is not defined - - ^ -CONTEXT: SQL function "xpath" statement 1 +ERROR: invalid XML content +LINE 1: SELECT xpath('/*', ''); + ^ -- XPath deprecates relative namespaces, but they're not supposed to -- throw an error, only a warning. SELECT xpath('/*', '');