users@jaxb.java.net

Re: preserve the element order in schema...

From: Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
Date: Wed, 16 Mar 2005 09:08:49 -0800

Jagdeep_Singh_at_capgroup.com wrote:
> Hi All,
>
> How to preserve the elements order in schema in generated JAXB impl class.?
> I am using JAXB 1.0.2.

If you read a document and write it back, orders of sibling elements are
  preserved.

> I want to have the class members in generated jaxb class in the same order
> as I defined in underlying schema.

There's no "order" among class members, so I'm not sure what you mean.
Do you want the source code to declare members in the order they appear?
If so, why?


-- 
Kohsuke Kawaguchi
Sun Microsystems                   kohsuke.kawaguchi_at_sun.com