Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XML-Schema restriction of xs:dateTime or xs:date

Status
Not open for further replies.

levka

Programmer
Feb 13, 2003
3
0
0
US
Hello,

I have the program that intakes the request that contains multiple parameters in the form of XML String. The request is validated against XML Schema (W3C).

I was able to encode validation rules (restrictions) for almost all parameters into XML schema except validation of Date of Birth parameter. This parameter must have the age restriction. In other words, the only valid date of birth is when person is between 17 and 85 years old. Does anybody know the way to encode this restriction into XML schema? Currenty this is the only validation that I still have to perform in the program's code.
Regards,
Leo
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top