Tim Isenhart wrote:
>
> How can I control the order that castor emits elements/attributes ?
>
> I have a parser that expects attributes and elements to be in a specific
> order. I'd like castor to emit these items in a specific order.
- If you are using the source generator...then no problem, just use
<sequence>
- If you are using a mapping file, order is the following:
1. Attribute ordering is non important as defined in XML 1.0
2. Elements appear in the order in which their respective fields are
defined.
3. If multiple identity fields are used they probably come last due
to a bug in MappingLoader/ClassDescriptorImpl.
- If you are using default introspection, you'll need to switch to a
mapping file.
--Keith
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev