Skip to Content
0
Former Member
Jan 05, 2008 at 11:17 AM

Remove ns0 without affecting namespace

422 Views

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.