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

Reply via email to