KB Article #177694

Versions after 7.2.1 add a namespace to XML when using Add XML Node

Problem

* There is a change in the behavior of Add XML Node in versions after 7.2.1, wherein it adds the default namespace to XML elements when using the Add XML Node filter. For example, a message like this:

<ns2:error>
<errorType>SAMPLE</errorType>
</ns2:error>

Could turn into this if the sample node was removed and added again:

<ns2:error>
<ns2:errorType>SAMPLE</ns2:errorType>
</ns2:error>

Resolution

-- This is expected behavior that is the result of a bugfix wherein nodes that were removed from an XML document could not be added again. Although this was a change from previous behavior, the namespace is correct and valid.