users@jaxb.java.net

Re: influencing the ordering of attributes for marshalling

From: Peter Meulmeester <pmeulmeester_at_catlogic.com>
Date: Fri, 27 Jun 2003 16:47:22 +0200

Thanks, that is what I thought. The attributes would be saved in a hash. :-(
Is it possible to get a hook into the marshalling process and specify a
sorting algorithm, at leat alfabetically?
If not, I will need to think of a post marshal process, maybe dom4.

best regards,
Peter


> -----Original Message-----
> From: Discussion list for the Java Architecture for XML Binding
> [mailto:JAXB-INTEREST_at_JAVA.SUN.COM]On Behalf Of Kohsuke Kawaguchi
> Sent: Friday, June 27, 2003 4:30 PM
> To: JAXB-INTEREST_at_JAVA.SUN.COM
> Subject: Re: influencing the ordering of attributes for marshalling
>
>
> Peter Meulmeester <pmeulmeester_at_CATLOGIC.COM> wrote:
> > Is there a way to specufy that the order in the schema should
> be maintained?
>
> No. That's the first information we throw out. In fact as long as you're
> using SAX or DOM or any technology built on top of it, there's no
> reliable way to preserve the order of attributes.
>
>
> regards,
> --
> Kohsuke Kawaguchi 408-276-7063 (x17063)
> Sun Microsystems kohsuke.kawaguchi_at_sun.com
>