on ‎2020 Sep 05 6:49 AM
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
Request clarification before answering.
Hi maheedhar.venkata2,
Could you please try below xslt:
https://answers.sap.com/questions/9399000/removing-namespace-prefix-using-xslt-mapping.html
hope this helps !
thanks and regards,
Praveen T
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 7 | |
| 5 | |
| 5 | |
| 4 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.