Jump to content

Begin_Date and End_Date Validation

Guest Venkat

Recommended Posts

Guest Venkat

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 post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...