you need to set wrapCollectionsInElement to false on the XmlIntrospection configuration.
this one is in the (current) document (on the website) see http://jakarta.apache.org/commons/betwixt/guide/binding.html. it's a bit hard to find stuff but most of the Betwixt functionality is covered somewhere or other. at the moment, you probably either need to read all the documentation (or buy a book). an index would be a very welcomed contribution. - robert On Sat, 2005-03-19 at 23:13 -0800, Jeremy Denton wrote: > Yes, The goal is to have an AddressBook object. > > I think I figured it out but I don't know what if three things that > > I was trying to avoid having: > > <addressBook> > <personList> > <person name=joe"/> > <person name="frank"/> > </personList> > </addressBook> > > What I want is: > > <addressBook> > <person name=joe"/> > <person name="frank"/> > </addressBook> > > > I figured it out but it was one of three things: > > 1) adding a removePerson(Person person) method > 2) <element name="person" property="persons" /> > 3) the structure of my betwixt files. > > Jeremy > > > On Mar 19, 2005, at 3:52 PM, Vikram Goyal wrote: > > > I am not sure what you mean. Is addressBook a collection of Person > > objects? > > > > java.util.ArrayList addressBook = new java.util.ArrayList(); > > addressBook.add(new Person("Bob")); > > addressBook.add(new Person("John")); > > bWriter.write("addressBook", addressBook); > > bWriter.flush(); > > > > This should do what you want to do, if I understand you correctly. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > -- robert burrell donkin <[EMAIL PROTECTED]> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]