integer - Integer numbers, like "-1", "0", "12678967543233", "+100000", ...
date - Date only, like "2002-12-23".
time - Time only, like "14:19:00.000-05:00".
string - A sequence of any Unicode characters
Rule 1. All built-in datatypes are simple datatypes, which do not allow any attributes or sub (child) elements
if it is used in an element declaration component.
Rule 2. Build-in datatype names have the namespace name of "http://www.w3.org/2001/XMLSchema".
Here is a sample schema, holiday.xsd, that uses the built-in datatype "date":
<?xml version="1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<!-- holidat.xsd
- Copyright (c) 2013, HerongYang.com, All Rights Reserved.
-->
<!-- Using XML Schema built-in datatype "date" -->
<xs:element name="holiday" type="xs:date"/>
</xs:schema>
The following XML document, holiday.xml, conforms to holiday.xsd: