Patch Reviews - SUN (MOSC)

MOSC Banner

XMLDB - Remove Namespace Prefix using DBMS_XMLDOM

Hi,

We are using Oracle 11g (11.2.0.3) DB.

We have requirement to remove namespace and namespace prefix from XML document.

I could able to remove namespace from XML Document using DBMS_XMLDOM.SETATTRIBUTE (by setting attribute as NULL).   But not able to remove namespace prefix from XML doc. I tried with DBMS_XMLDOM.SETPREFIX, but it's not removing completely from XML Doc.

Could you please help me out.

Sample XML Doc:

<OrderList>

<abc:Order xmlns:abc="http://xyz.com">

  <id>123</id>

  <name>name1</name> 

</abc:Order>

<abc:Order xmlns:abc="http://xyz.com">

  <id>124</id>

  <name>name2</name> 

</abc:Order>

<abc:

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center