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!

XSLT: Adding namespace prefix to the root element

Balaji RadhakrishnanMay 7 2015 — edited May 18 2015

Hi All,

     In my mapping am getting an xml output like this,

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

<RootElement1 xmlns:ns1="http://oracle.com/strangePrefixIssue" xmlns="http://oracle.com/strangePrefixIssue">

   <ns1:ChildElement1>

      <ns1:GrandChild1>Name1</ns1:GrandChild1>

      <ns1:GrandChild2>Name2</ns1:GrandChild2>     

   </ns1:ChildElement1>

</RootElement1>

But the application which processes this xml requires the prefix to be added to the root element. The expectation is like this

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

<ns1:RootElement1 xmlns:ns1="http://oracle.com/strangePrefixIssue" xmlns="http://oracle.com/strangePrefixIssue">

   <ns1:ChildElement1>

      <ns1:GrandChild1>Name1</ns1:GrandChild1>

      <ns1:GrandChild2>Name2</ns1:GrandChild2>     

   </ns1:ChildElement1>

</ns1:RootElement1>


I have already referred to the below link, but no luck,

https://community.oracle.com/message/12816717

I'm using this xslt in SOA 11.1.1.7 and have Bpel 2.0.

Kindly help me fix this issue. Thanks in advance.

Regards,

Balaji Radhakrishnan

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 15 2015
Added on May 7 2015
1 comment
851 views