on 11-21-2007 11:52 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.