xml schema validation failure

Hi Everyone,

I have a peculiar problem. In my code am validating the incoming xml with a schema.
In the schema, its defined like this:

<xs:element name=“WeightDelivered” type=“lsse:Weight5Point2”>

So when the incoming data has “WeightDelivered” as ‘0.000’, its failing, which is obvious.
But when they are sending any other value in the place of trailing 0, suppose, ‘5.000’, its processing fine. But as per the validation, it should fail.
Could somebody please explain why its happening like that.


type=“lsse:Weight5Point2” is a user define data type in XML schema. Have a look at the definition or pattern for this type in the XML schema file.

Do you mind sharing the XML schema here to give you details?