cancel
Showing results for 
Search instead for 
Did you mean: 

xslt mapping how to removing namespace and tags?

former_member270261
Participant
0 Kudos

Hello Experts,

how to remove the below tags from payload. while using the xslt mapping.

can anyone please provide the xslt code?

<ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge"> <ns0:Message1> </ns0:Message1> </ns0:Messages>

Thanks

Narendra

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member190293
Active Contributor
0 Kudos

Hi Narenda!

Just copy the message node to output xml:

<xsl:template match="//ns1:SupplierInformation">
<xsl:copy-of select="."/>
</xsl:template>

Regards, Evgeniy.

Alejandro2
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Narendran,

You can remove the namespace in module processor from your communication channel, you don't need to use a XSLT Mapping to remove it. In the blog Remove Namespace in PI by XMLAnonymizer Bean in communication channel-Example step by step you can found how to configure the adapter module.

Regards!