Hi All

I am using SourceCode generator to generate the Java oBject model by giving
an XSD.
Now when I use marshal to generate the XML, the elements in the XML are not
ordered ,see below
(0), (1) ..(4) is the order in which I expect the elements to be(it's not
part of generated XML, just to explain I have added this)


<?xml version="1.0" encoding="UTF-8"?>
<QIPManagedElements>
    <QIPManagedElement>
        <XX(1)>0Dev</XX>
        <YY(0)>Create</YY>
        <KK(4)>Mask1 1078984033963</KK>
        <ZZ(3)>Router111 1078984033963</ZZ>
        <SS(2)>10.18.8.51 1078984033963</SS>
    </QIPManagedElement>
</QIPManagedElements>

I want the Order of elements in the generated XML to be as below 

<?xml version="1.0" encoding="UTF-8"?>
<QIPManagedElements>
    <QIPManagedElement>
        <YY(0)>Create</YY>
          <XX(1)>0Dev</XX>
          <SS(2)>10.18.8.51 1078984033963</SS>        
          <ZZ(3)>Router111 1078984033963</ZZ>
        <KK(4)>Mask1 1078984033963</KK>
</QIPManagedElement>
</QIPManagedElements>

How to do this ? Please help me out

Thanks
Devashish


-----Original Message-----
From: Keith Visco [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 11, 2004 3:00 AM
To: [EMAIL PROTECTED]
Subject: Re: [castor-dev] Hashmap problem




You need to be using Castor 0.9.5.3 for the changes:

I'm in the process of doing the official release, but I've placed a copy
of the 0.9.5.3 jar on the ftp server that you can use while I'm updating
the website and release notes.

ftp://ftp.exolab.org/pub/castor/castor_0.9.5.3/castor-0.9.5.3.jar

Thanks,

--Keith

----------------------------------------------------------- 
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