Re: [jibx-users] Map an array not within a class

2006-12-18 Thread Stephane Elie
Hi Dennis, Using the guidelines you provided, I have been able to map an array directly. I am providing the solution to the mailing list, if you see any possible improvement, just let me know. Here is what I have in my binding file: binding.xml mapping class=Banana name=Banana ... Banana

Re: [jibx-users] Map an array not within a class

2006-11-09 Thread Dennis Sosnoski
Hi Stephane, The tutorial section on collections gives some examples that should be relevant: http://jibx.sourceforge.net/tutorial/binding-collects.html For what you want, a simple binding like: collection field=list name=list structure name=item type=MyItem value name=field

Re: [jibx-users] Map an array not within a class

2006-11-09 Thread Dennis Sosnoski
Hi Stephane, Mapping an array directly is not possible because of the way Java handles arrays - each array type in Java is a separate class, but it's a synthesized class rather than a real one. Because the class is synthetic there's no way to add information to the class. It's not too hard to

[jibx-users] Map an array not within a class

2006-10-31 Thread Stephane Elie
Hi,I haven't found a way to map an array directly in the XML file.I would like to do something like this:binding !-- this works and map a single object in the XML file -- mapping class= test.MyClass name=item value name=field field=field / /mapping !-- I want to do something like this, but it