try <xs:totalDigits value="[0-9]{27}"/>
Dont know if it will work but try.
Regards
Deepak
----- Original Message -----
From: "Bhaskar_V" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, February 13, 2002 10:57 AM
Subject: [castor-dev] Pblm with xs:decimal.
> Hi,
> I am facing a problem with xs:decimal. I used castor's source generator to
> generate the code for my schema.
> My schema looks like this.
> <xs:element name="Net_Amt">
> <xs:simpleType>
> <xs:restriction base="xs:decimal">
> <xs:totalDigits value="27"/>
> <xs:fractionDigits value="2"/>
> </xs:restriction>
> </xs:simpleType>
> </xs:element>
> When i use the source generator to generate the code, it had set
BigDecimal
> for the datatypes. When i try to marshall the object, it expects my
Net_Amt
> value to be excatly equal to 27.
>
> I am getting the following exception.
>
> 2/13/02 11:27:37 PM Default: ERROR ********** Error in creating the XML
File
> D:\\files\\reports\\00000028.xml *******
> 2/13/02 11:27:37 PM Default: ERROR ERROR ::::::::ValidationException:
25.85
> doesn't have the correct number of digits: 27;
>
> Can you one help me in this issue?
>
> Regards,
> V.Bhaskar.
> **************************************************************************
> This email (including any attachments) is intended for the sole use of the
> intended recipient/s and may contain material that is CONFIDENTIAL AND
> PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying
or
> distribution or forwarding of any or all of the contents in this message
is
> STRICTLY PROHIBITED. If you are not the intended recipient, please contact
> the sender by email and delete all copies; your cooperation in this regard
> is appreciated.
> **************************************************************************
>
> -----------------------------------------------------------
> If you wish to unsubscribe from this mailing, send mail to
> [EMAIL PROTECTED] with a subject of:
> unsubscribe castor-dev
>
>
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev