Guest Venkat Posted August 22, 2006 Share Posted August 22, 2006 I have two elements, Namely<xs:element name="Begindate" type="xs:dateTime"/><xs:element name="Enddate" type="xs:dateTime" minOccurs="0"/>I should make sure the End date is always greater than the Begin date, If at all the End Date exist.Can any one help me to achieve this please?I tried as below, but could not succeded.<xs:element name="Begindate" type="xs:dateTime"/><xs:element name="Enddate" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:dateTime"> <xs:maxInclusive value=Begindate/> </xs:restriction> </xs:simpleType></xs:element> Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now