cancel
Showing results for 
Search instead for 
Did you mean: 

Remove Prefix

Former Member
0 Kudos

Hi Experts,

I am getting my XML output has

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

<ns1:abc xmlns:ns1="http://abc.com">

<ns1:First_Name>44</ns1:First_Name>

<ns1:Last_Name>444</ns1:Last_Name>

</ns1:Profile>

BUt here in this XML I have to remove prefix ns1:

and my desired output should be as below

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

<abc xmlns="http://abc.com">

<First_Name>44</First_Name>

<Last_Name>444</Last_Name>

</abc>

I tried all the ways plz give me solution for this

Thanks in Advance

Regards,

Prasad

Accepted Solutions (0)

Answers (2)

Answers (2)

stefan_grube
Active Contributor
0 Kudos

Use XMLAnonymizerBean communication channel.

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

prateek
Active Contributor
0 Kudos

Open your sender Message Type and emty the field XML Namespace. Then try again.

Regards,

Prateek

Former Member
0 Kudos

Explain briefly

stefan_grube
Active Contributor
0 Kudos

It is explained in the link.

Former Member
0 Kudos

HI stefen,

I used that link but iam not able to remove the prefix its removing the whole namespace.what to do?

Regards,

Prasad.

stefan_grube
Active Contributor
0 Kudos

double check, if you have put parameter anonymizer.acceptNamespaces correctly.

It should be

http://abc.com ''

'' = two apostrophes