CREATE EXTENSION IF NOT EXISTS xml2;

SELECT xpath_nodeset(
           '<root xmlns:foo="http://example.com/foo"><child/></root>',
           '//namespace::*');
