Adrian,

A similar issue was just fixed in CVS (see bug 1524). However, in your
case, you are using "<Node>" as your root element. But your schema
doesn't declare any such element, only a complex type. So your XML
instance is invalid.

--Keith

> Adrian Zachara wrote:
> 
> Hi!
> I get this error for this schema : (small example for a little
> presentation)
> 
> <schema xmlns="http://www.w3.org/2001/XMLSchema";>
>   <complexType name="Node">
>  <sequence>
>   <element name="element_a" type="string"/>
>   <choice>
>    <sequence>
>     <element name="element_b" type="string"/>
>     <choice>
>        <element name="element_c" type="string"/>
>        <element name="element_d" type="string"/>
>        <element name="childNode" type="Node"/>
>      </choice>
>    </sequence>
>    <element name="childNode" type="Node"/>
>   </choice>
>  </sequence>
>   </complexType>
> </schema>
> 
> when I try to unmarshall :
> 
> <Node>
>  <element_a>any_string_1</element_a>
>  <childNode>
>   <element_a>any_string_2</element_a>
>   <element_b>any_string_3</element_b>
>   <element_c>any_string_4</element_c>
>  <childNode>
> </Node>
> 
> I'm using Castor 0.9.5.3 - any suggestions, solutions how to solve
> this problem ???
> Thanks!
> Adrian
> 
>     ---------------------------------------------------------------
> -----------------------------------------------------------
> If you wish to unsubscribe from this mailing, send mail to
> [EMAIL PROTECTED] with a subject of:
>         unsubscribe castor-user



----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-user

Reply via email to