I have the following class:

public class Foo {

   Collection bars;

   ....

   public void addBar(String id) {
       bars.add(i);
   }

   public Iterator iterateBars() {
       return bars.iterator();
   }
}

And I to have Castor generate XML which looks like:

<foo>
   ....
   <bar id="1" />
   <bar id="2" />
   <bar id="3" />
</foo>

It's possibile to do that ???

Thank you,

Claudio

---------------------------------------------------------------------
To unsubscribe from this list please visit:

   http://xircles.codehaus.org/manage_email

Reply via email to