Re: [Simple-support] Help with a half serialization
Brought to you by:
niallg
|
From: Leonardo S. <som...@gm...> - 2011-12-20 17:57:14
|
Hello Carlos, I don't know if i understood completely, you need to serialize only certain attributes from Class2, is that right? if yes, you need the annotation to make the atribute transparent to simplexml: http://simple.sourceforge.net/download/stream/doc/tutorial/tutorial.php#default see the @Transient annotation, maybe it is what you need. Em Ter, 2011-12-20 às 16:23 +0100, car...@en... escreveu: > Hi all, > > I'm new with simplexml and I would like to ask how I can do one thing. > > I have a class with an array of classes > > class CLASS1 { > <CLASS2> ArrayList array; > ... > > I want to serialize CLASS1, just use some elements of CLASS2, but > when serialize CLASS2, save all elements, since the function of the > array is simply to keep a basic structure of CLASS2. > > I tried to do with the Converter, but I have problems with the array. > Any idea to do it? > > PD:Sorry for my level oh english > > Thank you very much > |