Re: [Simple-support] Serializing inline list of "simple" elements
Brought to you by:
niallg
|
From: Kevin J. <ke...@tr...> - 2008-05-28 04:51:30
|
So I determined that using the "ElementArray" annotation type will do
the trick, however - is there a way to suppress the "length" attribute
from serializing to the XML?
<events length="2">
<event>Event1</event>
<event>Event2</event>
</events>
thanks,
-kevin
On May 27, 2008, at 8:53 PM, Kevin Johnson wrote:
> Hi,
>
> I'm trying to serialize objects into XML with the following (example)
> resulting output:
>
> <events>
> <event>Foo1</event>
> <event>Foo2</event>
> <event>etc</event>
> </events>
>
> Is this possible with simple xml? I can't seem to find the right
> constructs to make this work...
>
> thanks,
>
> -kevin
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Simple-support mailing list
> Sim...@li...
> https://lists.sourceforge.net/lists/listinfo/simple-support
|