cancel
Showing results for 
Search instead for 
Did you mean: 

Remove namespace from XML file

Former Member
0 Kudos

Dear All,

I searched the forum and found out few ways to remove namespace from XML file. One way is to use bean AF_Modules/XMLAnonymizerBean.

I checked in XML message(receiver file) in RWB, but can see namespace still there. Is it that when XML will be created namespace will absent. Or did I miss anything in here?

Thanks.

Sumeet.

Accepted Solutions (1)

Accepted Solutions (1)

former_member184681
Active Contributor
0 Kudos

Hi Sumeet,

For more details about XMLAnonymizerBean, check the following sources:

SAP Help: Adding XMLAnonymizerBean in the Module Processor

SAP Note 880173 - XI 3.0 Adapter Framework XML Anonymizer Module

There are even some examples included. Please note that the namespace definition still stays in place, the namespace prefix is only removed from the individual tags of your payload. Depending on where you use the bean (sender or receiver channel), namespaces can also be added e.g. by the Message Mapping object.

Regards,

Grzegorz

Former Member
0 Kudos

Hi Grzegorz,


You are right. Instead of this I used simple XSLT mapping to solve this.


Thanks.

Sumeet.

Answers (2)

Answers (2)

markangelo_dihiansan
Active Contributor
0 Kudos

Hi Sumeet,

Is there any reason not to try this and go for adapter module instead?

Regards,

Mark

javier_alcubilla
Contributor
0 Kudos

Hi Summet

You have to set the variables needed

Check this blog

Regards

Javi