ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  XML Document Validation with an XML Schema
Subject:   Better validation : xs:restriction & xs:pattern
Date:   2004-09-23 06:03:59
From:   dvohra09
Response to: Better validation : xs:restriction & xs:pattern

The <xs:restriction/> element in a <xs:simpleType/> may be used to constrain the value space of data types.


<xs:restriction/> sub-element <xs:pattern/> is used to constrain the value space of data types to literals which match a regular expression.