-16089 AN expression-type EXPRESSION AND POSSIBLY OTHER UPDATING EXPRESSIONS IN AN XMLMODIFY FUNCTION INTRODUCE CONFLICTING NAMESPACE BINDINGS INTO AN ELEMENT NAMED element-name. THE PREFIX prefix-string IS BOUND TO uri-string WHILE ANOTHER BINDING OF THE SAME PREFIX USES A DIFFERENT NAMESPACE URI. ERROR QNAME=err:XUDY0024.
Explanation
The combined effect of updating expressions in the XMLMODIFY function has been to introduce conflicting namespace bindings into an element node.
- expression-type
- The type of expression.
- element-name
- The name of the XML element.
- prefix-string
- The prefix.
- uri-string
- The URI in the current namespace binding.
Possible causes for this error include:
- Two attributes might have been inserted whose QNames have the same namespace prefix but different namespace URIs.
- If expression-type is "insert" or "replace", the conflicting namespace bindings might be between two attribute nodes in the sequence of attribute nodes in the insertion sequence or replacement sequence.
- A namespace binding might have been introduced to the indicated element for an attribute node that was inserted or replaced by another updating expression in the same XMLMODIFY function.
System action
The XQuery expression cannot be processed.
Programmer response
If the expression is intentionally introducing a new namespace binding, modify the expression so that is uses a namespace prefix that is different from all other prefixes used in the updating expressions of the same XMLMODIFY function that have the indicated element as the target or parent of an attribute node target. Otherwise, modify the expression so that the binding of the prefix uses the same URI as the other namespace bindings used in the updating expressions of the same XMLMODIFY function that have the indicated element as the target or parent of an attribute node target.
SQLSTATE
10708