Hi All,
I would like to know if the order of the marshalled XML elements can be changed using any of the castor.properties parameters.
The output XML generated in my program does not follow the order specified in mapping XML.
Pl let me know.
Enclosed below is from Castor XML FAQ regarding the order of marshalled elements.
Thanks
Gopi
Reference in Castor XML FAQ:
What is the order of the marshalled XML elements?
If you are using Castor's default introspection to automatically map
the objects into XML, then there is no guarantee on the order. It
simply depends on the order in which the fields are returned to Castor
using the Java reflection API.
Note: If you use a mapping file Castor will generate the XML in the order in which the mapping file is specified.

