Re: [Simple-support] removing class attribute from ElementLists
Brought to you by:
niallg
|
From: Niall G. <gal...@ya...> - 2008-09-03 05:34:33
|
Hi, There is an example of how to use a strategy in the tutorial. In you dont need to deserialize the XML after serializing it again, then you can simple remove the inserted class attribute from the NodeMap. Also, just to mention, the class="java.util.ArrayList" is added to the XML only because your field is not that concrete type. e.g @ElementList private List list; If it were @ElementList private ArrayList list It would not generate the class= attribute. Finally a good source of information on how to use Strategy objects can be found by simply looking at the unit tests for the strategy. These come with the download and are int the test/src folder. Hope this helps, Niall --- On Tue, 9/2/08, John Fairhall <joh...@qu...> wrote: > From: John Fairhall <joh...@qu...> > Subject: [Simple-support] removing class attribute from ElementLists > To: "sim...@li..." <sim...@li...> > Date: Tuesday, September 2, 2008, 6:57 PM > Hi, > > I am relatively new to Simple. I'm trying to produce > XML that can be used outside of Java. I would like to remove > the 'class' attributes from various ElementLists > which are java ArrayLists of a concrete type. From looking > through the archive it looks like I can use a Strategy to do > this. Is there any example documentation on how to create a > Strategy? > > John. > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move > Developer's challenge > Build the coolest Linux based applications with Moblin SDK > & win great prizes > Grand prize is a trip for two to an Open Source event > anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/_______________________________________________ > Simple-support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simple-support |