users@jaxb.java.net

Re: problems with generated xml documents

From: Ed Mooney <Ed.Mooney_at_sun.com>
Date: Tue, 22 Jul 2003 10:06:25 -0400

Hi Norman,

See samples/namespace-prefix for how to do this.

Regards,
--
Ed Mooney         |Sun Microsystems, Inc.|Time flies like
Java Web Services |UBUR02-201            |an arrow, but
Ed.Mooney_at_Sun.COM |1 Network Drive       |fruit flies like
781-442-0459      |Burlington, MA  01803 |a banana. Groucho
Norman wrote:
> Hi everyone,
> for a project I have to create schema compliant xml documents. I am using jaxb. The main schema consists of several subschemas (some define enumerations others define simple and complex elements). Every subschema has its own namespace.
> When creating xml documents I get something like this :
>
> <ns2:Version xmlns:ns2="http://www.test.de/enumerationElements">01</ns2:Version>
> <ns3:DokuArt xmlns:ns3="http://www.test.de/enumerationElements">EDIFACT</ns3:DokuArt>
> <ns4:Beleg xmlns:ns4="http://www.test.de/enumerationElements">VKAU</ns4:Beleg>
>
> How can I avoid the xmlns attributes in my tags?
>
> Thanks Norman