Skip to Content
0
Jan 14, 2011 at 09:37 AM

removing ns0 from namespace

607 Views

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