cancel
Showing results for 
Search instead for 
Did you mean: 

XSLT Mapping

Former Member
0 Kudos

Hi EveryBody,

I am generating the following payload using an XSLT mapping.

<<b>ns0:</b>BP xmlns<b>:ns0</b>="http://www.XYZ.com/sch">

<F1>

<A1>

<M>09241009535201658926</M>

<D>Partner</D>

<C>00339</C>

<SA>KNM</SA>

</A1>

</F1>

</<b>ns0:</b>BP>

I want to remove the namespace ns0: from the payload. Can anybody tell me how can i acheive this in XSLT mapping.

Thanks & Regards,

Zabiulla

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Check if this is useful

Remove namespace prefix with the XMLAnonymizerBean

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

aashish_sinha
Active Contributor
0 Kudos

Hi,

Have a look on this link, it might help you.

http://www.topxml.com/xsl/articles/recurse/

Regards

Aashish Sinha

PS : reward points if helpful

Former Member
0 Kudos

Hi EveryBody,

I have also used adapter module<b> AF_Modules/XMLAnonymizerBean</b> and i can remove the ns0: but the problem is that i get

<?xml version='1.0' encoding='utf-8'?> in the payload generated but i need the above starting tag as <?xml version="1.0" encoding="UTF-8"?>, the difference is that i need UTF-8 in upper case and in double quotes.Can anybody help me out.

Thanks,

Zabiulla

udo_martens
Active Contributor
0 Kudos

Hi Zabiulla,

i think the easiest way would be an ABAP mapping, where you dont use a XML parser.

Convert to String with fm ECATT_CONV_XSTRING_TO_STRING, use REPLACE for getting result (may be use a regular expression), finally convert back to XString with ECATT_CONV_STRING_TO_XSTRING.

Regards, Udo