cancel
Showing results for 
Search instead for 
Did you mean: 

XSLT mapping code to replace <ns1: tag as <plm: in XML file in PI mapping

Former Member
0 Kudos

Hi

I am sending XML file to HTTP server as below format

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

- <ns1:Responses xmlns:ns1="http://">

- <ns1:Response Application="SAP">

<ns1:field1>12345</ns1:field1>

<ns1:field2>abc</ns1:field2>

- <ns1:Items>

<ns1:doc></ns1:doc>

</ns1:Items>

</ns1:Response>

</ns1:Responses>

i hve to replace <ns1: as <plm:, i could able to delete <ns1: tag uisng XSLT mapping(in sdn), but i dont know how to add tag with <plm:

Hi XSLT experts/if any has come across this requirment, please send XSLT code to add tag in XML.

Regards,

Rajesh

Accepted Solutions (0)

Answers (1)

Answers (1)

henrique_pinto
Active Contributor
0 Kudos

No need for XSLT, just use the XMLAnonymizerBean module in your receiver communication channel.

http://help.sap.com/saphelp_nw70/helpdata/EN/45/d169186a29570ae10000000a114a6b/frameset.htm

/people/stefan.grube/blog/2007/02/02/remove-namespace-prefix-or-change-xml-encoding-with-the-xmlanonymizerbean

If your receiver CC cannot process modules (ABAP receiver, for example), in your XSLT just define the target namespace with the desired prefix.

Regards,

Henrique.