XML Schema is a definition file that defines an XML, with .xsd as a file extension. It is also used to define a class XML file.
Typically, some special meanable data cannot be clearly described through the system preset data structure (type). Declaring in the XML Schema specification: You can limit the simple type by Facet to generate some new atomic types. Facet has Pattern, Enumeration, etc .; here is that a very useful one is: Pattern Regular Expression Language Combined with the powerful function of the regular expression, you can perform some complex data structure descriptions.
Examples can be verified by XMLSPY, XMLWRITE, or JS / VBS, etc., the following example (MSXML4.0 support) is mentioned below.
Information on defining XML Schema can be found in the first part of the XML Schema specification of W3C. For information on built-in data types and limitations thereof, check the second part of the XML Schema specification. For a simple summary of these two parts XML Schema specification, please check the W3C Primer on XML Schema.
For regular expressions, you can go to http://www.regexlib.com/
EXAMPLES:
/ *** EXAMPLES.XML *** / XML Version = "1.0" encoding = "GB2312"?>
/ *** EXAMPLES.XSD *** / XML Version = "1.0" encoding = "GB2312"?>
xsd: schema>