cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Remove namespace using XSLT

0 Likes
5,070

Hi Experts,

Please help by suggesting xslt code to remove namespace in the below location of xml output file.

Scenario: Using XSLT mapping i've added namespaces to the PI XML output file as below.

<abc:Abc schemaLocation="http://sample.com/Message/2.0 http://scshost/schemas/sample/First.xsd"; xmlns:msg="http://Sample.com/Message/2.0">

<acb:Hdr>

<abc:Sender xmlns:msg="http://Sample.com/Message/2.0">

</abc:Hdr>

Want to remove namespace to the abc:Sender

and

In Lines also need to remove namespace

<xyz:Lines>

<xyz:Line xmlns:msg="http://Sample.com/Message/2.0"; " xmlns:xyz="http://www.PI.net/POC/1.1"> <zxy:LineNum>000001</xyz:LineNum>

<xyz:SuppLineNum>10</xyz:SuppLineNum>

<xyz:Code>0000</xyz:Code>

<xyz:Qty>1.000</xyz:Qty>

</xyz:Lines>

Thank You,

Sai

Accepted Solutions (0)

Answers (1)

Answers (1)