[Home] [By Thread] [By Date] [Recent Entries]

  • To: xml-dev@l...
  • Subject: Date Format in XSD Schema
  • From: "Khurram Chaudhary" <kc5uk@h...>
  • Date: Wed, 23 Jul 2003 10:03:40 +0100
  • Bcc:

Helo All

Can anybobdy help me in specifying date format in xsd.  I want to restrict 
date format in dd/mm/ccyy format, and also want to make this date optional.  
At the moment I am doing this

<xs:element name="DateAdded">
    <xs:simpleType>
	<xs:restriction base="xs:string">
	      <xs:pattern value="[0-2][0-9][/][0-1][0-9][/][0-2][0-2][0-9][0-9]"/>
	</xs:restriction>
    </xs:simpleType>
</xs:element>

I want to make this value optional.

Also how to specify an email address in xsd and make it optional.

Thnaks

Khurram.

_________________________________________________________________
Use MSN Messenger to send music and pics to your friends 
http://www.msn.co.uk/messenger


Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member