on 01-14-2011 9:37 AM
hello,
Have a Idoc to File scenerio.
The file generated after mapping is
Eg:
<ns0:Document xmlns="urn:iso:std:iso:camt">
<tag0>data0</tag0>
<tag1>data1</tag1>
.
.
<ns0:Document>
My requirement is to remove ns0 from the root element "Document" so output is in format(namespace should not be deleted or affected):
<Document xmlns="urn:iso:std:iso:camt">
<tag0>data0</tag0>
<tag1>data1</tag1>
I did follow the XMLAnonymizer blog (/people/stefan.grube/blog/2007/02/02/remove-namespace-prefix-or-change-xml-encoding-with-the-xmlanonymizerbean
).. but no use..Can someone help me in removing this ns0 from namespace.
regards
> I did follow the XMLAnonymizer blog (/people/stefan.grube/blog/2007/02/02/remove-namespace-prefix-or-change-xml-encoding-with-the-xmlanonymizerbean
> ).. but no use..Can someone help me in removing this ns0 from namespace.
This should work. Was is your configuration of this module and what is the outcome?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
>> By default,we have a standard callAdapter module and just right after that i added this XMLAnonymizer bean and rest everythig is same as mentioned in the blog.
You did not follow the blog direction. I have implemented XMLAnonymizer bean and worked for us. BTW, as stefan said it should be the first bean followed by standard calladapter module. key value again based on your synchronous aysnchronous interface requirement.
Before going for XSLT mapping, check if you have not done any mistake while using XMLAnonymizerBean. http://wiki.sdn.sap.com/wiki/display/XI/ChangingNamespacesandtheencodingformatof+XML
BTW what is the SP level?
Regards,
Sunil Chandra
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
>
> Is there any workaround which i can try out???
>
> please suggest
>
> reagrds
Check this links:
http://www.riyaz.net/blog/beginners-guide-to-xslt-mapping-in-sap-pi/technology/sap/769/
http://help.sap.com/saphelp_nw04/helpdata/en/73/f61eea1741453eb8f794e150067930/content.htm
Edited by: spantaleoni on Jan 14, 2011 12:44 PM
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.