Hi,
I have a class MyClass that has the following structure:

Class MyClass{

Private int color
//setters and getters
}
After serialization with Xstream I get the following file

        <MyClass>
            <color>-16776961</color>
        </ MyClass >

Now, the int attribute Color was modified by Color attribute with the same name:

Class MyClass{

Private Color color
//setters and getters
}

We need to migrate the old xml file to be able to load it according to the new 
structure of the class.
Is there a way offered by Xstream to modify the xml file while unmarshalling in 
order to can have this output?

        <MyClass>
            <color>
                <red>255</red>
                    <green>255</green>
                    <blue>255</blue>
                    <alpha>255</alpha>
</color>
        </ MyClass >

Thanks in advance


Best Regards
Nabil Rabhi* R&D engineer * Global Trading * SunGard * Centre Urbain Nord 
-Charguia 1 BP130 1082 Tunis Tunisia
Tel: +216 70 728 628 (2407) * +216 70726628 *   
[email protected]<mailto:[email protected]> , 
www.sungard.com<blocked::http://www.sungard.com>
[Description: Description: Description: Description: 
coc-signature-03-2012]<http://www.capitalize-on-change.com/?email=70150000000Y1Et>

Join the online conversation with SunGard's customers, partners and Industry 
experts and find an event near you at: 
www.sungard.com/ten<http://www.capitalize-on-change.com/?email=70150000000Y1Et>.


<<inline: image001.gif>>

Reply via email to