users@jaxb.java.net

Default Namespace in JAXB

From: <Vishal.Manchanda_at_iflexsolutions.com>
Date: Tue, 27 Jul 2004 12:13:26 +0530

 

Hi,

I'm using JAXB.

In my xml I need default namespace to be shown after marshalling.

Like this

 

<msg xmlns="dnamespace" >

..................

...............

.

</msg>

 

 

I'm using my own NamespacePrefixMapperImpl

But it is automatically generating "ns1" as prefix whereas I do not want
any prefix

It is showing output as

 

<msg xmlns:ns1="dnamespace" >

..................

...............

.

</msg>

 

Please suggest how I can declare default namespaces using JAXB

 

 

 

Vishal Manchanda

 Associate Consultant , e-Solutions

    PrimeSourcing(tm)," Add Value Reduce Risk" The Global IT Services
business from i-flex

 i-flex Solutions Ltd-Mumbai

    Tel: 91-22-5668 5362 OR 91-22-28391909 xtn-5360

    Cell: 91-98925 20922

 www.iflexsolutions.com/services/services.asp

 Email: vishal.manchanda_at_iflexsolutions.com