<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
		<id>http://wbex.ru/index.php?action=history&amp;feed=atom&amp;title=XML_Tutorial%2FXML_Schema%2FIntroduction</id>
		<title>XML Tutorial/XML Schema/Introduction - История изменений</title>
		<link rel="self" type="application/atom+xml" href="http://wbex.ru/index.php?action=history&amp;feed=atom&amp;title=XML_Tutorial%2FXML_Schema%2FIntroduction"/>
		<link rel="alternate" type="text/html" href="http://wbex.ru/index.php?title=XML_Tutorial/XML_Schema/Introduction&amp;action=history"/>
		<updated>2026-04-04T10:50:30Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://wbex.ru/index.php?title=XML_Tutorial/XML_Schema/Introduction&amp;diff=10663&amp;oldid=prev</id>
		<title>Admin: 1 версия</title>
		<link rel="alternate" type="text/html" href="http://wbex.ru/index.php?title=XML_Tutorial/XML_Schema/Introduction&amp;diff=10663&amp;oldid=prev"/>
				<updated>2010-05-26T08:26:47Z</updated>
		
		<summary type="html">&lt;p&gt;1 версия&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Предыдущая&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Версия 08:26, 26 мая 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; style=&quot;text-align: center;&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	<entry>
		<id>http://wbex.ru/index.php?title=XML_Tutorial/XML_Schema/Introduction&amp;diff=10662&amp;oldid=prev</id>
		<title> в 18:22, 25 мая 2010</title>
		<link rel="alternate" type="text/html" href="http://wbex.ru/index.php?title=XML_Tutorial/XML_Schema/Introduction&amp;diff=10662&amp;oldid=prev"/>
				<updated>2010-05-25T18:22:32Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Create global complex types==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;xs:schema xmlns:xs=&amp;quot;http://www.w3.org/2001/XMLSchema&amp;quot;&lt;br /&gt;
  targetNamespace=&amp;quot;http://www.wbex.ru&amp;quot; &lt;br /&gt;
  xmlns=&amp;quot;http://www.wbex.ru&amp;quot;&lt;br /&gt;
  elementFormDefault=&amp;quot;qualified&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;xs:simpleType name=&amp;quot;supportedLanguages&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;xs:restriction base=&amp;quot;xs:language&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;xs:enumeration value=&amp;quot;en&amp;quot; /&amp;gt;&lt;br /&gt;
      &amp;lt;xs:enumeration value=&amp;quot;es&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;/xs:restriction&amp;gt;&lt;br /&gt;
  &amp;lt;/xs:simpleType&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
  &amp;lt;xs:attribute name=&amp;quot;lang&amp;quot; type=&amp;quot;supportedLanguages&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;xs:complexType name=&amp;quot;tokenWithLang&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;xs:simpleContent&amp;gt;&lt;br /&gt;
      &amp;lt;xs:extension base=&amp;quot;xs:token&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;xs:attribute ref=&amp;quot;lang&amp;quot; /&amp;gt;&lt;br /&gt;
      &amp;lt;/xs:extension&amp;gt;&lt;br /&gt;
    &amp;lt;/xs:simpleContent&amp;gt;&lt;br /&gt;
  &amp;lt;/xs:complexType&amp;gt;&lt;br /&gt;
  &amp;lt;xs:element name=&amp;quot;title&amp;quot; type=&amp;quot;tokenWithLang&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/xs:schema&amp;gt;&amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
== Derivation by extension==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;xs:schema xmlns:xs=&amp;quot;http://www.w3.org/2001/XMLSchema&amp;quot;&lt;br /&gt;
  targetNamespace=&amp;quot;http://www.wbex.ru&amp;quot; &lt;br /&gt;
  xmlns=&amp;quot;http://www.wbex.ru&amp;quot;&lt;br /&gt;
  elementFormDefault=&amp;quot;qualified&amp;quot;&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
  &amp;lt;xs:simpleType name=&amp;quot;supportedLanguages&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;xs:restriction base=&amp;quot;xs:language&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;xs:enumeration value=&amp;quot;en&amp;quot; /&amp;gt;&lt;br /&gt;
      &amp;lt;xs:enumeration value=&amp;quot;es&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;/xs:restriction&amp;gt;&lt;br /&gt;
  &amp;lt;/xs:simpleType&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
  &amp;lt;xs:attribute name=&amp;quot;lang&amp;quot; type=&amp;quot;supportedLanguages&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;xs:complexType name=&amp;quot;tokenWithLang&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;xs:simpleContent&amp;gt;&lt;br /&gt;
      &amp;lt;xs:extension base=&amp;quot;xs:token&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;xs:attribute ref=&amp;quot;lang&amp;quot; /&amp;gt;&lt;br /&gt;
      &amp;lt;/xs:extension&amp;gt;&lt;br /&gt;
    &amp;lt;/xs:simpleContent&amp;gt;&lt;br /&gt;
  &amp;lt;/xs:complexType&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
  &amp;lt;xs:element name=&amp;quot;title&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;xs:complexType&amp;gt;&lt;br /&gt;
      &amp;lt;xs:simpleContent&amp;gt;&lt;br /&gt;
        &amp;lt;xs:extension base=&amp;quot;tokenWithLang&amp;quot;&amp;gt;&lt;br /&gt;
          &amp;lt;xs:attribute name=&amp;quot;note&amp;quot; type=&amp;quot;xs:token&amp;quot; /&amp;gt;&lt;br /&gt;
        &amp;lt;/xs:extension&amp;gt;&lt;br /&gt;
      &amp;lt;/xs:simpleContent&amp;gt;&lt;br /&gt;
    &amp;lt;/xs:complexType&amp;gt;&lt;br /&gt;
  &amp;lt;/xs:element&amp;gt;&lt;br /&gt;
&amp;lt;/xs:schema&amp;gt;&amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
== Derivation by restriction==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;xs:schema xmlns:xs=&amp;quot;http://www.w3.org/2001/XMLSchema&amp;quot;&lt;br /&gt;
  targetNamespace=&amp;quot;http://www.wbex.ru&amp;quot; &lt;br /&gt;
  xmlns=&amp;quot;http://www.wbex.ru&amp;quot;&lt;br /&gt;
  elementFormDefault=&amp;quot;qualified&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;xs:complexType name=&amp;quot;tokenWithLangAndNote&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;xs:simpleContent&amp;gt;&lt;br /&gt;
      &amp;lt;xs:extension base=&amp;quot;xs:token&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;xs:attribute name=&amp;quot;lang&amp;quot; type=&amp;quot;xs:language&amp;quot; /&amp;gt;&lt;br /&gt;
        &amp;lt;xs:attribute name=&amp;quot;note&amp;quot; type=&amp;quot;xs:token&amp;quot; /&amp;gt;&lt;br /&gt;
      &amp;lt;/xs:extension&amp;gt;&lt;br /&gt;
    &amp;lt;/xs:simpleContent&amp;gt;&lt;br /&gt;
  &amp;lt;/xs:complexType&amp;gt;&lt;br /&gt;
&amp;lt;/xs:schema&amp;gt;&amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
== Derived Datatypes==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
Type Name          Type                             Derivation&lt;br /&gt;
integer            Built-in derived                 decimal&lt;br /&gt;
token              Built-in derived                 normalizedString&lt;br /&gt;
nonPositiveInteger Built-in derived                 integer&lt;br /&gt;
long               Built-in derived                 integer&lt;br /&gt;
nonNegativeInteger Built-in derived                 integer&lt;br /&gt;
language           Built-in derived                 token&lt;br /&gt;
Name               Built-in derived                 token&lt;br /&gt;
NMTOKEN            Built-in derived                 token&lt;br /&gt;
negativeInteger    Built-in derived                 nonPositiveInteger&lt;br /&gt;
int                Built-in derived                 long&lt;br /&gt;
unsignedLong       Built-in derived                 nonNegativeInteger&lt;br /&gt;
positiveInteger    Built-in derived                 nonNegativeInteger&lt;br /&gt;
NCName             Built-in derived                 Name&lt;br /&gt;
NMTOKENS           Built-in derived                 NMTOKEN&lt;br /&gt;
short              Built-in derived                 int&lt;br /&gt;
unsignedInt        Built-in derived                 unsignedLong&lt;br /&gt;
ID                 Built-in derived                 NCName&lt;br /&gt;
IDREF              Built-in derived                 NCName&lt;br /&gt;
ENTITY             Built-in derived                 NCName&lt;br /&gt;
byte               Built-in derived                 short&lt;br /&gt;
unsignedShort      Built-in derived                 unsignedInt&lt;br /&gt;
IDREFS             Built-in derived                 IDREF&lt;br /&gt;
ENTITIES           Built-in derived                 ENTITY&lt;br /&gt;
unsignedByte       Built-in derived                 unsignedShort&amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
== Getting Started with XML Schemas==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
File: Data.xml&lt;br /&gt;
&amp;lt;?xml version = &amp;quot;1.0&amp;quot; ?&amp;gt;&lt;br /&gt;
&amp;lt;Customer&amp;gt;&lt;br /&gt;
   &amp;lt;FirstName&amp;gt;First&amp;lt;/FirstName&amp;gt;&lt;br /&gt;
   &amp;lt;MiddleInitial&amp;gt;Middle&amp;lt;/MiddleInitial&amp;gt;&lt;br /&gt;
   &amp;lt;LastName&amp;gt;Last&amp;lt;/LastName&amp;gt;&lt;br /&gt;
&amp;lt;/Customer&amp;gt;&lt;br /&gt;
File: Schema.xsd&lt;br /&gt;
&amp;lt;?xml version = &amp;quot;1.0&amp;quot; ?&amp;gt;&lt;br /&gt;
&amp;lt;schema xmlns = &amp;quot;http://www.w3.org/2001/XMLSchema&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;element name = &amp;quot;Customer&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;complexType&amp;gt;&lt;br /&gt;
         &amp;lt;sequence&amp;gt;&lt;br /&gt;
            &amp;lt;element name = &amp;quot;FirstName&amp;quot; type = &amp;quot;string&amp;quot; /&amp;gt;&lt;br /&gt;
            &amp;lt;element name = &amp;quot;MiddleInitial&amp;quot; type = &amp;quot;string&amp;quot; /&amp;gt;&lt;br /&gt;
            &amp;lt;element name = &amp;quot;LastName&amp;quot; type = &amp;quot;string&amp;quot; /&amp;gt;&lt;br /&gt;
         &amp;lt;/sequence&amp;gt;&lt;br /&gt;
      &amp;lt;/complexType&amp;gt;&lt;br /&gt;
   &amp;lt;/element&amp;gt;&lt;br /&gt;
&amp;lt;/schema&amp;gt;&amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
== Primitive Datatypes==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
Type Name          Type                             Derivation&lt;br /&gt;
duration           Built-in primitive               anySimpleType&lt;br /&gt;
dateTime           Built-in primitive               anySimpleType&lt;br /&gt;
time               Built-in primitive               anySimpleType&lt;br /&gt;
date               Built-in primitive               anySimpleType&lt;br /&gt;
gYearMonth         Built-in primitive               anySimpleType&lt;br /&gt;
gYear              Built-in primitive               anySimpleType&lt;br /&gt;
gMonthDay          Built-in primitive               anySimpleType&lt;br /&gt;
gDay               Built-in primitive               anySimpleType&lt;br /&gt;
gMonth             Built-in primitive               anySimpleType&lt;br /&gt;
boolean            Built-in primitive               anySimpleType&lt;br /&gt;
base64Binary       Built-in primitive               anySimpleType&lt;br /&gt;
hexBinary          Built-in primitive               anySimpleType&lt;br /&gt;
float              Built-in primitive               anySimpleType&lt;br /&gt;
double             Built-in primitive               anySimpleType&lt;br /&gt;
anyURI             Built-in primitive               anySimpleType&lt;br /&gt;
QName              Built-in primitive               anySimpleType&lt;br /&gt;
NOTATION           Built-in primitive               anySimpleType&lt;br /&gt;
string             Built-in primitive               anySimpleType&lt;br /&gt;
decimal            Built-in primitive               anySimpleType&amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
== &amp;lt;schema&amp;gt; Declarations==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
To connect the two documents, you include a reference to the XML Schema within your instance document. &lt;br /&gt;
You begin XML schema with the XML declaration, &amp;lt;?xml version=&amp;quot;1.0&amp;quot;?&amp;gt;.&lt;br /&gt;
The root element within your XML Schema is the &amp;lt;schema&amp;gt; element.&lt;br /&gt;
Within the &amp;lt;schema&amp;gt; element, you have the namespace declaration.&lt;br /&gt;
The namespace of the &amp;lt;schema&amp;gt; element is http://www.w3.org/2001/XMLSchema.&lt;br /&gt;
targetNamespace attribute indicates that the vocabulary is for the namespace http://www.wbex.ru/name. &lt;br /&gt;
You can declare a namespace that matches your targetNamespace with the prefix target to refer to any declarations within your XML Schema. &lt;br /&gt;
The attribute elementFormDefault controls the way namespaces are used within your corresponding XML document. &lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;schema xmlns=&amp;quot;http://www.w3.org/2001/XMLSchema&amp;quot; &lt;br /&gt;
        xmlns:target=&amp;quot;http://www.wbex.ru/name&amp;quot; &lt;br /&gt;
        targetNamespace=&amp;quot;http://www.wbex.ru/name&amp;quot; &lt;br /&gt;
        elementFormDefault=&amp;quot;qualified&amp;quot;&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;/schema&amp;gt;&amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
== &amp;lt;schema&amp;gt; element is the root element within an XML Schema.==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;schema targetNamespace=&amp;quot;URI&amp;quot; &lt;br /&gt;
        attributeFormDefault=&amp;quot;qualified or unqualified&amp;quot; &lt;br /&gt;
        elementFormDefault=&amp;quot;qualified or unqualified&amp;quot; &lt;br /&gt;
        version=&amp;quot;version number&amp;quot;&amp;gt; &lt;br /&gt;
You could use any of the following for the XML schema namespace : &lt;br /&gt;
&amp;lt;schema xmlns=&amp;quot;http://www.w3.org/2001/XMLSchema&amp;quot;&amp;gt;              or &lt;br /&gt;
&amp;lt;xs:schema xmlns:xs=&amp;quot;http://www.w3.org/2001/XMLSchema&amp;quot;&amp;gt;        or &lt;br /&gt;
&amp;lt;xsd:schema xmlns:xsd=&amp;quot;http://www.w3.org/2001/XMLSchema&amp;quot;&amp;gt; &lt;br /&gt;
&lt;br /&gt;
Within the &amp;lt;schema&amp;gt; element you can specify how elements should be qualified: elementFormDefault and attributeFormDefault &lt;br /&gt;
The elementFormDefault and attributeFormDefault attributes enable you to control the default qualification form for elements and attributes.&lt;br /&gt;
The default value is unqualified.&amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
== Simple and Complex Types==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
Elements that can contain only text are simple type. &lt;br /&gt;
Elements that contain other elements or that contain attributes are a complex type. &lt;br /&gt;
Attributes are simple type.&lt;br /&gt;
There are several built-in simple types, like date, integer, and string. &lt;br /&gt;
You can build custom simple types.&lt;br /&gt;
Elements of complex type describe the structure of a document, rather than its content. &lt;br /&gt;
There are four basic kinds of complex types: &lt;br /&gt;
    elements that contain just other elements,&lt;br /&gt;
    elements that contain both elements and text, &lt;br /&gt;
    elements that contain only text&lt;br /&gt;
    elements that are empty. &lt;br /&gt;
Each of these may contain attributes as well. &lt;br /&gt;
Both simple and custom types may be named, which can be reused in other places.&lt;br /&gt;
Both simple and custom types may be anonymous, which are used only within the element in which the definition appears.&amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
== Target Namespaces==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
The primary purpose of XML Schemas is to declare vocabularies. &lt;br /&gt;
These vocabularies can be identified by a namespace that is specified in the targetNamespace attribute.&lt;br /&gt;
Not all XML Schemas will have a targetNamespace.&lt;br /&gt;
Many XML Schemas define vocabularies that are reused in another XML Schema.&lt;br /&gt;
Possible targetNamespace declarations include the following: &lt;br /&gt;
&amp;lt;schema xmlns=&amp;quot;http://www.w3.org/2001/XMLSchema&amp;quot; &lt;br /&gt;
        targetNamespace=&amp;quot;http://www.wbex.ru/name&amp;quot; &lt;br /&gt;
        xmlns:target=&amp;quot;http://www.wbex.ru/name&amp;quot;&amp;gt; &lt;br /&gt;
or &lt;br /&gt;
&amp;lt;xs:schema xmlns:xs=&amp;quot;http://www.w3.org/2001/XMLSchema&amp;quot; &lt;br /&gt;
           targetNamespace=&amp;quot;http://www.wbex.ru/name&amp;quot; &lt;br /&gt;
           xmlns=&amp;quot;http://www.wbex.ru/name&amp;quot;&amp;gt; &lt;br /&gt;
&lt;br /&gt;
In the first declaration, the &amp;lt;schema&amp;gt; element uses the default namespace. &lt;br /&gt;
Because of this the target namespace http://www.wbex.ru/name requires the use of a prefix. &lt;br /&gt;
In the second declaration, the &amp;lt;schema&amp;gt; element requires the use of a prefix.&lt;br /&gt;
Because the target namespace http://www.wbex.ru/nameis using a default namespace declaration.&amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
== Useful built-in simple types==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
Built-in type           Description                                                Example(s) &lt;br /&gt;
xsd:string              A sequence of any of the legal XML characters              This is a string. &lt;br /&gt;
xsd:boolean             The value true or false, or 1(true) or 0(false)            true, &lt;br /&gt;
                                                                                   false&lt;br /&gt;
                                                                                   1&lt;br /&gt;
                                                                                   0&lt;br /&gt;
xsd:decimal             A number that may contain a decimal component              -5.2&lt;br /&gt;
xsd:integer             A whole number                                             -389&lt;br /&gt;
xsd:positiveInteger     A positive whole number (not including 0)                  5&lt;br /&gt;
xsd:negativeInteger     A negative whole number (not including 0)                  -389&lt;br /&gt;
xsd:date                A calendar date, represented as CCYY-MM-DD                 2008-05-21&lt;br /&gt;
xsd:time                A time of day, represented as hh:mm:ss.ss                  11:30:00.00 (11:30 A.M.)&lt;br /&gt;
xsd:dateTime            A date and time of day, CCYY-MM-DD Thh:mm:ss.ss            2008-05-21T17:28:00.00&lt;br /&gt;
xsd:gMonth              A Gregorian calendar month, represented as --MM--          --05-- (May)&lt;br /&gt;
xsd:gYear               A Gregorian calendar year, represented as CCYY             2008&lt;br /&gt;
xsd:gDay                A day of a Gregorian calendar month, represented as ---DD  ---05&lt;br /&gt;
xsd:gYearMonth          A Gregorian calendar year and month, as CCYY-MM            2008-05 (May, 2008)&lt;br /&gt;
xsd:anyURI              A URI                                                      http://www.wbex.ru&amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
== XML Schema defines the name vocabulary.==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
It shows how to refer to the XML Schema from the instance document.&lt;br /&gt;
You used the XML Schema to determine whether your instance document was schema valid.&lt;br /&gt;
File: Schema.xsd&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;schema xmlns=&amp;quot;http://www.w3.org/2001/XMLSchema&amp;quot;&lt;br /&gt;
  xmlns:target=&amp;quot;http://www.wbex.ru/name&amp;quot;&lt;br /&gt;
  targetNamespace=&amp;quot;http://www.wbex.ru/name&amp;quot;&lt;br /&gt;
  elementFormDefault=&amp;quot;qualified&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;element name=&amp;quot;name&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;complexType&amp;gt;&lt;br /&gt;
      &amp;lt;sequence&amp;gt;&lt;br /&gt;
        &amp;lt;element name=&amp;quot;first&amp;quot; type=&amp;quot;string&amp;quot; /&amp;gt;&lt;br /&gt;
        &amp;lt;element name=&amp;quot;middle&amp;quot; type=&amp;quot;string&amp;quot; /&amp;gt;&lt;br /&gt;
        &amp;lt;element name=&amp;quot;last&amp;quot; type=&amp;quot;string&amp;quot; /&amp;gt;&lt;br /&gt;
      &amp;lt;/sequence&amp;gt;&lt;br /&gt;
      &amp;lt;attribute name=&amp;quot;title&amp;quot; type=&amp;quot;string&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;/complexType&amp;gt;&lt;br /&gt;
  &amp;lt;/element&amp;gt;&lt;br /&gt;
&amp;lt;/schema&amp;gt;&lt;br /&gt;
&lt;br /&gt;
File: Data.xsl&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;name xmlns=&amp;quot;http://www.wbex.ru/name&amp;quot;&lt;br /&gt;
  xmlns:xsi=&amp;quot;http://www.w3.org/2001/XMLSchema-instance&amp;quot;&lt;br /&gt;
  xsi:schemaLocation=&amp;quot;http://www.wbex.ru/name name5.xsd&amp;quot;&lt;br /&gt;
  title=&amp;quot;Mr.&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;first&amp;gt;John&amp;lt;/first&amp;gt;&lt;br /&gt;
  &amp;lt;middle&amp;gt;Joh&amp;lt;/middle&amp;gt;&lt;br /&gt;
  &amp;lt;last&amp;gt;Doe&amp;lt;/last&amp;gt;&lt;br /&gt;
&amp;lt;/name&amp;gt;&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
			</entry>

	</feed>