You would marshal your class back out to the xml file.
Is there another way to update the xml file besides marshalling?
**chris
On Wed, 2003-02-12 at 09:27, Hanasaki JiJi wrote:
> Right. I noticed that a 'List' is returned. Problem is, the
> getElement().add() only updates the in VM memory copy. How can an add
> be done that will persist out and revise the XML data file?
>
> Burnett, Stewart wrote:
> > Jiji,
> >
> > No setter is generated if the element can occur more than once (maxoccurs >
> > 1), in this case getElement() returns a java.util.List, so you can use
> > getElement().add() to add another or getElement().get(n) to get the n'th
> > one.
> >
> > As for your 2nd question, dunno :-(
> >
> > Stewart
> >
> > -----Original Message-----
> > From: Hanasaki JiJi [mailto:hanasaki_at_hanaden.com]
> > Sent: 12 February 2003 03:34
> > To: JAXB-INTEREST_at_JAVA.SUN.COM
> > Subject: no setters generated
> >
> >
> > llo All,
> >
> > What is it in the xmlschemata that causes setters to be generated? I
> > have a complex type with a sequence that contains another complex type.
> > A getter is generated but not a setter.
> >
> > If a complex type is used several times in several areas of the same
> > schema, can it exist at the top level? The goal is to avoid embedding
> > the type in multiple locations.
> >
--
Chris Daniels <chris_at_roidea.com>
R.O. Idea, Inc