Parsing Xml using JAXB

------------------------

Hi all,

I am using XML for data storage and JAXB for parsing data from that XML my XML is like this(for ex).

////////////////////////////////////////////////////////////

<XML version="1.0">
<School>
<Class id=1>
<name>leo</name
<no>001</no>
<interest id=1>
<gamename>football</gamename
</interest >

<interest id=2>
<gamename>Volleyball</gamename
</interest >
</Class>
<Class id=2>
<name>leo2</name
<no>002</no>
<interest id=1>
<gamename>football</gamename
</interest >

<interest id=2>
<gamename>Volleyball</gamename
</interest >
</Class>
</School>

//////////////////////////////////////////////////////////////

In the above program I have nested class like one base root class called <School> inside that there is one class called <Class> it has multiple occurences so that I am using Iterator class to fetch the values .I know how to create an Iterator class for this <Class> but inside this I also have some sub classes like <interest> This sub class also has some multiple occurances I dont know how to create an iterator class for this subclasses using JAXB.Please do reply
[1446 byte] By [jamesjohnney] at [2007-11-20 1:08:33]