> [EMAIL PROTECTED] wrote... > > > Hi, I'm new on XMLSchema... I using it from DAML. > > I don't know if what I want to do is possible or not. > > If I have > > <xsd:schema xmlns:xsd="http://www.w3.org/2001/10/XMLSchema"> > <xsd:simpleType name="lessThan20"> > <xsd:restriction base="xsd:positiveInteger"> > <xsd:maxInclusive value="20"/> > </xsd:restriction> > </xsd:simpleType> > </xsd:schema> > > And I want to know if an integer I have in java (int i=23) is a > lessThan20 correct value. How can I do it?
Having such a schema, you can be sure that an element in an instance file whose type is "lessThan20" can hold value less than or equal to 20 (make sure you have validation feature turned on). Cheers, Rahul. > > Thanks, > Marc > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
