I have list of objects like "Foo" which contains an "id" attribute and a
collection of children and want to flat them during marshaling:
public class Foo{
int id;
List<Children> children
}
Creating a nested list is not complex but I would like to have something like:
<Foos>
<Foo id="1" childName="a"/>
<Foo id="1" childName="b"/>
<Foo id="1" childName="c"/>
<Foo id="2" childName="aa"/>
<Foo id="2" childName="bb"/>
<Foo id="2" childName="cc"/>
</Foos>
How can you map these?
____________________________________________________________________________________
Never miss a thing. Make Yahoo your home page.
http://www.yahoo.com/r/hs