Hi Dennis, Dennis Sosnoski wrote: > Yes, you can do this in JiBX - but you need to use a <structure> > reference to the object, rather than a <value> reference. <value> always > represents a simple text value in JiBX bindings. Substituting this into > your <mapping> gives: > > <mapping name="Create" class="Create"> > <structure field="object"/> > </mapping> > > Notice that I did not use a name attribute on the <structure>, because > the name will actually be determined by the mapping definition for the > actual type of the object.
If possible, I would not force this upon the users of JiBX. While it is not an issue in my current usecase, I have written schemas in the past that use the same XML type with different element names. > The only catch is that using the current 1.1.6 release you need to > compile all the bindings at once. In the current 1.2 CVS code it's > possible to compile the bindings separately, which is what I suspect you > really want to do. That would allow you to compile and bind the classes > in core and assemble the jar, then just use that jar for APPLES and > ORANGES separately with their own bindings which build on that used for > core. I'm trying to work through the documentation of this and the other > new 1.2 features so that I can get out a beta release. Hmm, that is a limitation indeed. If I would want APPLES and ORANGES projects to work with core at the same time in the same JVM, I suppose I would need to compile all three at the same time? How stable is 1.2 branch? If I test it with my specific use-case and it seems to work - I suppose it would also work in "production", right? Any "heavy-load related" issues? Maybe you have some code sample available that would demonstrate how to achieve this with 1.2 API? Neeme ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ jibx-users mailing list jibx-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jibx-users