Sorry,

forgot to attach the schema.



Martin Lang wrote:
> 
> Hi,
> 
> I defined the following schema type and generated the castor classes for
> it.
> 
> When I try to read a value "05" I get an exception. The problem seems to
> be that castor ignores the base type (long) and tries to hash directly
> the string "05", which it can not find.
> 
> Does anybody have a workaround for that problem?
> 
> Regard
> 
>   Martin
> 
> -----------------------------------------------------------
> If you wish to unsubscribe from this mailing, send mail to
> [EMAIL PROTECTED] with a subject of:
>         unsubscribe castor-dev
        <xsd:simpleType name="xxx">
                <xsd:restriction base="xsd:long">
                        <xsd:enumeration value="1" />
                        <xsd:enumeration value="2" />
                        <xsd:enumeration value="3" />
                        <xsd:enumeration value="4" />
                        <xsd:enumeration value="5" />
                        <xsd:enumeration value="6" />
                        <xsd:enumeration value="7" />
                        <xsd:enumeration value="8" />
                        <xsd:enumeration value="9" />
                        <xsd:enumeration value="10" />
                        <xsd:enumeration value="11" />
                        <xsd:enumeration value="12" />
                        <xsd:enumeration value="13" />
                        <xsd:enumeration value="14" />
                        <xsd:enumeration value="15" />
                        <xsd:enumeration value="16" />
                        <xsd:enumeration value="99" />
                </xsd:restriction>
        </xsd:simpleType>

Reply via email to