You can control the order by using Source Code Generator, which picks up
the schema. But this is a static ordering.

The problem which I have is that I want to change the order
dyanmically/programmatically.  
Does anyone know how to do that ?

E.g. if XML generated is like this:

<ROOT>
<ABC>  </ABC>
<XYZ>  </XYZ>
</ROOT>

And now under some conditions I want to reverse the order to:

<ROOT>
<XYZ>  </XYZ>
<ABC>  </ABC>
</ROOT>

Does anyone know if there is a way to do that using Marshalling
techniques ?

Thanks
Sunit






-----Original Message-----
From: Dario Di [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 23, 2003 1:40 AM
To: [EMAIL PROTECTED]
Subject: [castor-dev] Problem: order of the tags in marshalled xml


Hi all,
I'd like to know if there is a way to control the
order in which the tags appear in the marshalled file.

I'd like to impose the order given in my schema,
because I use the <xs:sequence> tag. 

Can the Marshaller read my schema?
(Maybe the solution was to use the Source Code
Generator?)

Thanks for all your help
Dario


______________________________________________________________________
Yahoo! Mail: 6MB di spazio gratuito, 30MB per i tuoi allegati,
l'antivirus, il filtro Anti-spam
http://it.yahoo.com/mail_it/foot/?http://it.mail.yahoo.com/

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to