Re: [Simple-support] Availabily of object inlining
Brought to you by:
niallg
|
From: Niall G. <gal...@ya...> - 2012-07-30 09:48:40
|
You could use a Converter, or you could just serialize one object i.e drop B.
--- On Fri, 27/7/12, Maxim Solodovnik <sol...@gm...> wrote:
From: Maxim Solodovnik <sol...@gm...>
Subject: [Simple-support] Availabily of object inlining
To: sim...@li...
Received: Friday, 27 July, 2012, 2:04 AM
Hello,
I have very specific question regarding object serialization:Our current code uses "hand writed" serialization/deserialization to/from XML.I would like to port it to use "Simple framework".
2 features I was unable to find in documentation/examples1) serializing of List<MyObject> (can be workarounded by creating additional class holding list as the only parameter)
2) inlining of property object: imaging we have@Rootclass A { @Element String prop; @Element B b;}
@Rootclass B { @Element String propB1; @Element String propB2;}
Serializing of A will produce:<a>
<prop></prop> <b> <propB1></propB1> <propB2></propB2> </b></a>
what I need is to get (to be compatible with previous versions)
<a> <prop></prop> <propB1></propB1> <propB2></propB2></a>
Is this possible somehow?
Maybe 1) above can be implemented without creating additional class?
Sorry for the long postThanks in advance
--
WBR
Maxim aka solomax
-----Inline Attachment Follows-----
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
-----Inline Attachment Follows-----
_______________________________________________
Simple-support mailing list
Sim...@li...
https://lists.sourceforge.net/lists/listinfo/simple-support
|