Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

how to remove namespace from root-element

Sharmistha GhoshFeb 12 2015 — edited Feb 26 2020

Hi Gurus,

I want one xml output from xslt transformation with no namespace. I managed to remove namespace from child elements by leveraging elementFormDefault ='unqualified' property of xsd. But not able remove namespace from root-element.

Output that I want is :

<?xml version = '1.0' encoding = 'UTF-8'?>

<inp1:Email_Mod_Root>

   <Email_Mod_Root_Element>

      <Email_Record1>

         <PERSON_NUMBER>123456</PERSON_NUMBER>

         <COUNTRY/>

          <EMAIL_TYPE>WORK</EMAIL_TYPE>

         <EMAIL>EMAIL3</EMAIL>

         <PRIMARY_FLAG>Y</PRIMARY_FLAG>

      </Email_Record1>

</Email_Mod_Root_Element>

</Email_Mod_Root>

Output that I am getting:

<?xml version = '1.0' encoding = 'UTF-8'?>

<inp1:Email_Mod_Root xmlns:inp1="http://www.example.org">

   <Email_Mod_Root_Element>

      <Email_Record1>

         <PERSON_NUMBER>123456</PERSON_NUMBER>

         <COUNTRY/>

         <EMAIL_TYPE>WORK</EMAIL_TYPE>

         <EMAIL>EMAIL3</EMAIL>

         <PRIMARY_FLAG>Y</PRIMARY_FLAG>

      </Email_Record1>

</Email_Mod_Root_Element>

</Email_Mod_Root>

Anyone, pls suggest.

Thanks in advance,

SG_SOA

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 17 2015
Added on Feb 12 2015
6 comments
5,011 views