Hi Nabil,
[email protected] wrote:
> 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
Can you please use the user's list for this type of question? I cannot see
how anything here is related to the development of XStream.
Thanks,
Jörg
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email