Hi,

I tested the patch for adding XMLNamespaces support to XMLELEMENT.
I checked the following cases:
Basic XMLELEMENT() continues to work.
Namespace with a prefix works correctly.
DEFAULT namespace works correctly.
NO DEFAULT works correctly.
Multiple namespace declarations work as expected.
Nested namespaces are handled correctly.
I also tested XMLTABLE with NO DEFAULT.

For example:

SELECT xmlelement(
    NAME "foo",
    xmlnamespaces('http://x.y' AS bar)
);

returns:

<foo xmlns:bar="http://x.y"/>

I also tested the nested namespace case and got the expected result:

<root xmlns="http://x.y/ns1";>
  <foo xmlns=""/>
</root>

Overall, the tested cases are working as expected, and I did not
notice any issues during testing.

Regards,
Solai


Reply via email to