users@jaxb.java.net

Re: How to fill dynamically JAXB java objects

From: Wolfgang Laun <wolfgang.laun_at_gmail.com>
Date: Mon, 29 Sep 2008 12:31:28 +0200

What do you mean by "fixed way" and what by "fill dynamically"? Perhaps you
post a Java code snippet of what you call "fixed way".

Generally speaking, you create an object by a call to one of the methods in
some JAXB generated ObjectFactory class ("createSomeElement") and then you
call the methods setThisSubElement( ... ) and setTahtAttribute( ... ) of the
newly generated object. Except for the root element, all of these created
objects have to be entered with setter methods as sub-elements of their
parent elements.


On Sat, Sep 27, 2008 at 9:24 AM, maliheh shariat <malsh20_at_yahoo.com> wrote:

> Hi Friends
>
> I created Jaxb java classes and now I want to fill them dynamically , but I
> dont know how I can dynamically fill JAXB java objects (I can do it in fix
> way) ,I must say that their data are in xml file to fill java objects ,
> please help me.
>
> Thanks alot
>
> Shariat
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
> For additional commands, e-mail: users-help_at_jaxb.dev.java.net
>
>