Skip to Content
avatar image
Former Member

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

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Jan 12, 2009 at 03:26 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded