jibx has method hooks that you can define in the binding xml file, so that custom code is called after something is unmarshalled (after-set), for example.
so after rootel is unmarshalled, you can manually assign the value of the number to each of the three elements. the jibx tutorial has examples of how to use method hooks in various circumstances. i hope that helps. / eitan On Tue, 2006-06-13 at 22:11 -0400, Sebastien Boudreau wrote: > I'm new with JiBX and I have a particular need: I must set the value > of one xml element into multiple java classes > > <RootEl> > <element1> > <number>55</number> > <element2> > ........... > </element2> > <element3> > .................. > </element3> > </element1> > </RootEl> > > In Java, I have one root object: RootObj that contains one > Element1Obj, one Element2Obj and one Element2Obj. I need to set the > value of the number element into the Element1Obj, Element2Obj and > Element3Obj. > > How could I map this number element into multiple java classes? > > Thanks all for you help! > Seb _______________________________________________ jibx-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jibx-users
