on 01-05-2008 11:17 AM
Hi Gurus,
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 is not affected):
<Document xmlns="urn:iso:std:iso:camt">
<tag0>data0</tag0>
<tag1>data1</tag1>
.
.
<Document>
If i remove the targetNameSpace from my xsd ,the namespace is not displayed in the output.But as per my requirement the namespace should be displayed.
Please let me know if there is any alternative solution or code(XSLT or Java) which can give the required output.
Hi Amit,
I think you can do it with XMLAnonymizerBean module in adapter module parameter tab:
You use this module to anonymize XML elements and attributes by removing namespaces or namespace prefixes from the XML document of the main payload.
You can define a particular namespace prefix for each namespace. You can also change the encoding attribute of the XML declaration.
Refer the weblog as well as help:
/people/stefan.grube/blog/2007/02/02/remove-namespace-prefix-or-change-xml-encoding-with-the-xmlanonymizerbean
http://help.sap.com/saphelp_nw04/helpdata/en/2e/bf37423cf7ab04e10000000a1550b0/frameset.htm
Thnx
Chirag
Reward Points if it helps.
Edited by: chirag Gohil on Jan 5, 2008 6:07 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.