Hi Guido, There shouldn't be any problem with a recursive data structure, though I've mostly seen it done using concrete <mapping>s. It may be that the use of an abstract <mapping> in this way takes things down a different code path which was never tested.
If you can create a Jira for this (http://jira.codehaus.org/secure/BrowseProject.jspa?id=10410) and supply a sample project with build.xml to illustrate the problem I'll look into what's going wrong. - Dennis Dennis M. Sosnoski SOA and Web Services in Java Training and Consulting http://www.sosnoski.com - http://www.sosnoski.co.nz Seattle, WA +1-425-939-0576 - Wellington, NZ +64-4-298-6117 Guido Wischrop wrote: > Ok it seems to only way to do something like this, is to write your > own Marshaller/Unmarshaller by implementing IUnmarshaller, IMarshaller > and IAliasable. Could someone please state this clearly in the FAQs or > in the documentation. > > Thanks. > > > On 7/25/07, Guido Wischrop <[EMAIL PROTECTED]> wrote: > >> Hello, >> I have the following data structure >> >> <xs:element name="block"> >> <xs:complexType> >> <xs:sequence> >> <xs:element ref="information" minOccurs="0" >> maxOccurs="unbounded"/> >> <xs:element ref="block" minOccurs="0"/> >> </xs:sequence> >> <xs:attribute name="number" type="xs:integer" use="required"/> >> </xs:complexType> >> </xs:element> >> >> and I'm trying to use this binding >> >> <mapping class="Block" abstract="true"> >> <value name="number" field="number" style="attribute" /> >> <collection field="informations" item-type="Information" >> create-type="java.util.ArrayList" /> >> <structure name="block" get-method="getBlock" set-method="setBlock" >> usage="optional"/> >> </mapping> >> >> but I get a StackOverflow exception when I run the ant bind task. >> >> Is there a common way to handle such data structures? Is it possible to >> create a Subblock class which references a Block? >> >> Thanks for your help. >> >> >> >> >> > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > jibx-users mailing list > jibx-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/jibx-users > > ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ jibx-users mailing list jibx-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jibx-users