How to remove name space from xml through XSLT

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Hi ,
  I have following xml 

 <xconnect xmlns=" http://campaigner.concepglobal.com/xconnect/ http://campaigner.concepglobal.com/xconnect/
   <interface>SERVER</interface>
   <user>
      <username>aa</username>
      <password>aa</password>
   </user>
   <report>
      <id>live</id>
      <input name="mode 1</input>
      <input name="campaignid"   xmlns=" http://campaigner.concepglobal.com/xconnect/ http://campaigner.concepglobal.com/xconnect/ 108121016523561</input >
   </report>
</xconnect>
</part></Invoke_1_GetHotelBookingMethod_InputVariable>

  I need :
 
<xconnect> 
<interface><![CDATA[SERVER]]></interface> 
<user> 
<username>aa</username> 
<password>aa</password> 
</user>
<report> 
<id>live</id>
<input name="mode 1</input> 
<input name="campaignid 108121016523561</input>
</report>
</xconnect>


I need to remove xmlns=" http://campaigner.concepglobal.com/xconnect/ http://campaigner.concepglobal.com/xconnect/"   from xml from root element and one base element.

I want <xconnect xmlns=" http://campaigner.concepglobal.com/xconnect/ http://campaigner.concepglobal.com/xconnect/

Like <xconnect>


Can anybody help me.
thanx,
rashmi.


View the full article
 
Back
Top