-16024   THE NAMESPACE PREFIX prefix-name CANNOT BE REDECLARED OR CANNOT BE BOUND TO THE SPECIFIED URI. ERROR QNAME = err:XQST0070

Explanation

A namespace declaration cannot redeclare the predefined namespace prefixes XML or XMLNS. If the prefix name is not XML, then it cannot be bound to the namespace URI 'http://www.w3.org/XML/1998/namespace'. No prefix can be bound to the namespace URI 'http://www.w3.org/2000/xmlns/' either.

System action

The XQuery expression cannot be processed.

Programmer response

Perform one of the following actions:
  • If the prefix name is XML or XMLNS, then change the prefix name to a different namespace prefix or remove the namespace declaration.
  • If the namespace URI is 'http://www.w3.org/XML/1998/namespace' or 'http:// www.w3.org/2000/xmlns/', then change the namespace URI specified in the declaration of the namespace prefix.

SQLSTATE

10503