My Oracle Support Banner

UPDATEXML Adds an Empty Namespace (xmlns="") When Adding a New Element Without Namespace in an XML With Namespace (Doc ID 1617746.1)

Last updated on MARCH 10, 2019

Applies to:

Oracle Database - Enterprise Edition - Version 11.2.0.3 to 11.2.0.4 [Release 11.2]
Oracle Database Cloud Schema Service - Version N/A and later
Oracle Database Exadata Cloud Machine - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Oracle Database Cloud Exadata Service - Version N/A and later
Information in this document applies to any platform.

Symptoms

Adding a new element without namespace in an XML having a namespace declared with UpdateXML statement,
adds an empty namespace 

xmlns=""

to the new added element

Example:

returns

XML_TEXT
--------------------------------------------------------------------------------
<?xml version="1.0" encoding="US-ASCII"?>
<root xmlns="evil.xsd">
  <node_a xmlns="">guff</node_a>
  <node_b xmlns="">puff</node_b>
</root>

 



Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.