Hi Jay, So he wants part of the information from the <sponsor> structure copied into the object he's creating for the <patient> structure. I can't think of any way to do this directly, but you can use JiBX extension methods (http://jibx.sourceforge.net/tutorial/binding-extend.html#extmeths) to add in special behavior. In this case, he could perhaps use a pre-set method on the Patient object to get the Sponsor and copy the information across. This assumes that whatever object acts as a container for both Sponsor and Patient provides a way to get at the Sponsor.
Hope that helps, - Dennis Dennis M. Sosnoski SOA, Web Services, and XML Training and Consulting http://www.sosnoski.com - http://www.sosnoski.co.nz Seattle, WA +1-425-296-6194 - Wellington, NZ +64-4-298-6117 jaybytez wrote: > I developer that is working with me on some of the JiBX has a situation where > they have something like the following: > > <sponsor> > <name>Jon Foo</name> > <ssn>234234234</ssn> > <sponsor> > <patient> > <name>Mike Foo</name> > <ssn>444555656</ssn> > </patient> > > He is creating a Sponsor object and Patient object through JiBX. One thing > he is wondering is that his Patient object has three fields (name, ssn, > sponsorSsn). He was wondering if he could grab the ssn tag within the > Sponsor while creating the Patient. I said he could not because (from my > understanding) a Pull Parser runs in the background and therefore you do not > have random access to the XML. Therefore, he was wondering if it would be > possible to store temporary values when a section of the xml is hit and that > value could be used later in the binding as the value for a field? > > I don't know if that makes sense or is even possible. > > Thanks, > > -jay > -- > View this message in context: > http://www.nabble.com/Possible-enhancement---Temporary-Variables-t1825426.html#a4979300 > Sent from the jibx-users forum at Nabble.com. > > > All the advantages of Linux Managed Hosting--Without the Cost and Risk! > Fully trained technicians. The highest number of Red Hat certifications in > the hosting industry. Fanatical Support. Click to learn more > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642 > _______________________________________________ > jibx-users mailing list > jibx-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/jibx-users > > Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ jibx-users mailing list jibx-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jibx-users