<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2-ppt DokuWiki" -->
<?xml-stylesheet href="https://wiki.nicksoft.com/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="https://wiki.nicksoft.com/feed.php">
        <title>NS Doc specifications:xml-schema</title>
        <description></description>
        <link>https://wiki.nicksoft.com/</link>
        <image rdf:resource="https://wiki.nicksoft.com/lib/images/favicon.ico" />
       <dc:date>2026-05-07T17:51:28+03:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="https://wiki.nicksoft.com/specifications:xml-schema:all"/>
                <rdf:li rdf:resource="https://wiki.nicksoft.com/specifications:xml-schema:annotation"/>
                <rdf:li rdf:resource="https://wiki.nicksoft.com/specifications:xml-schema:any"/>
                <rdf:li rdf:resource="https://wiki.nicksoft.com/specifications:xml-schema:anyattribute"/>
                <rdf:li rdf:resource="https://wiki.nicksoft.com/specifications:xml-schema:complextype"/>
                <rdf:li rdf:resource="https://wiki.nicksoft.com/specifications:xml-schema:element"/>
                <rdf:li rdf:resource="https://wiki.nicksoft.com/specifications:xml-schema:home"/>
                <rdf:li rdf:resource="https://wiki.nicksoft.com/specifications:xml-schema:howto"/>
                <rdf:li rdf:resource="https://wiki.nicksoft.com/specifications:xml-schema:intro"/>
                <rdf:li rdf:resource="https://wiki.nicksoft.com/specifications:xml-schema:restrictions"/>
                <rdf:li rdf:resource="https://wiki.nicksoft.com/specifications:xml-schema:schema-schema"/>
                <rdf:li rdf:resource="https://wiki.nicksoft.com/specifications:xml-schema:simpletype"/>
                <rdf:li rdf:resource="https://wiki.nicksoft.com/specifications:xml-schema:why-use"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="https://wiki.nicksoft.com/lib/images/favicon.ico">
        <title>NS Doc</title>
        <link>https://wiki.nicksoft.com/</link>
        <url>https://wiki.nicksoft.com/lib/images/favicon.ico</url>
    </image>
    <item rdf:about="https://wiki.nicksoft.com/specifications:xml-schema:all">
        <dc:format>text/html</dc:format>
        <dc:date>2009-01-31T16:57:26+03:00</dc:date>
        <title>XML Schema all Element</title>
        <link>https://wiki.nicksoft.com/specifications:xml-schema:all</link>
        <description>Definition and Usage


The all element specifies that the child elements can appear in any order and that each child element can occur zero or one time.

Element Information

	*  Parent elements: group, complexType, restriction (both simpleContent and complexContent), extension (both simpleContent and complexContent)</description>
    </item>
    <item rdf:about="https://wiki.nicksoft.com/specifications:xml-schema:annotation">
        <dc:format>text/html</dc:format>
        <dc:date>2009-01-31T17:02:59+03:00</dc:date>
        <title>XML Schema annotation Element</title>
        <link>https://wiki.nicksoft.com/specifications:xml-schema:annotation</link>
        <description>Definition and Usage

The annotation element is a top level element that specifies schema comments. The comments serve as inline documentation.

Element Information

	*  Parent elements: Any element

Syntax


&lt;annotation
id=ID
any attributes
&gt;

(appinfo|documentation)*

&lt;/annotation&gt;</description>
    </item>
    <item rdf:about="https://wiki.nicksoft.com/specifications:xml-schema:any">
        <dc:format>text/html</dc:format>
        <dc:date>2009-01-31T17:20:49+03:00</dc:date>
        <title>XML Schema any Element</title>
        <link>https://wiki.nicksoft.com/specifications:xml-schema:any</link>
        <description>Definition and Usage

The any element enables the author to extend the XML document with elements not specified by the schema.

Element Information

	*  Parent elements: choice, sequence

Syntax


&lt;any
id=ID
maxOccurs=nonNegativeInteger|unbounded
minOccurs=nonNegativeInteger
namespace=namespace
processContents=lax|skip|strict
any attributes
&gt;

(annotation?)

&lt;/any&gt;</description>
    </item>
    <item rdf:about="https://wiki.nicksoft.com/specifications:xml-schema:anyattribute">
        <dc:format>text/html</dc:format>
        <dc:date>2009-01-31T17:35:22+03:00</dc:date>
        <title>XML Schema anyAttribute Element</title>
        <link>https://wiki.nicksoft.com/specifications:xml-schema:anyattribute</link>
        <description>Definition and Usage

The anyAttribute element enables the author to extend the XML document with attributes not specified by the schema.

Element Information

	*  Parent elements: complexType, restriction (both simpleContent and complexContent), extension (both simpleContent and complexContent), attributeGroup</description>
    </item>
    <item rdf:about="https://wiki.nicksoft.com/specifications:xml-schema:complextype">
        <dc:format>text/html</dc:format>
        <dc:date>2009-01-31T17:53:03+03:00</dc:date>
        <title>XML Schema complexType Element</title>
        <link>https://wiki.nicksoft.com/specifications:xml-schema:complextype</link>
        <description>Definition and Usage


The complexType element defines a complex type. A complex type element is an XML element that contains other elements and/or attributes.

Element Information

	*  Parent elements: element, redefine, schema

Syntax


&lt;complexType
id=ID 
name=NCName 
abstract=true|false 
mixed=true|false
block=(#all|list of (extension|restriction))
final=(#all|list of (extension|restriction))
any attributes
&gt;

(annotation?,(simpleContent|complexContent|((group|all| 
choice|sequence)?,((attri…</description>
    </item>
    <item rdf:about="https://wiki.nicksoft.com/specifications:xml-schema:element">
        <dc:format>text/html</dc:format>
        <dc:date>2009-01-31T17:41:54+03:00</dc:date>
        <title>XML Schema element Element</title>
        <link>https://wiki.nicksoft.com/specifications:xml-schema:element</link>
        <description>Definition and Usage


The element element defines an element.

Element Information

	*  Parent elements: schema, choice, all, sequence, group

Syntax


&lt;element
id=ID 
name=NCName
ref=QName
type=QName
substitutionGroup=QName
default=string
fixed=string
form=qualified|unqualified
maxOccurs=nonNegativeInteger|unbounded
minOccurs=nonNegativeInteger
nillable=true|false
abstract=true|false 
block=(#all|list of (extension|restriction))
final=(#all|list of (extension|restriction))
any attributes
&gt;

an…</description>
    </item>
    <item rdf:about="https://wiki.nicksoft.com/specifications:xml-schema:home">
        <dc:format>text/html</dc:format>
        <dc:date>2009-01-31T18:33:35+03:00</dc:date>
        <title>XML Schema</title>
        <link>https://wiki.nicksoft.com/specifications:xml-schema:home</link>
        <description>XML Schema Tutorial by &lt;http://www.w3schools.com/Schema/&gt;

XML Schema is an XML-based alternative to DTDs.

An XML Schema describes the structure of an XML document.

The XML Schema language is also referred to as XML Schema Definition (XSD).

In this tutorial you will learn how to read and create XML Schemas, why XML Schemas are more powerful than DTDs, and how to use the XML Schema language in your application.</description>
    </item>
    <item rdf:about="https://wiki.nicksoft.com/specifications:xml-schema:howto">
        <dc:format>text/html</dc:format>
        <dc:date>2009-01-31T18:14:04+03:00</dc:date>
        <title>XSD How To?</title>
        <link>https://wiki.nicksoft.com/specifications:xml-schema:howto</link>
        <description>XML documents can have a reference to a DTD or to an XML Schema.

A Simple XML Document


Look at this simple XML document called “note.xml”:



&lt;?xml version=&quot;1.0&quot;?&gt;
&lt;note&gt;
&lt;to&gt;Tove&lt;/to&gt;
&lt;from&gt;Jani&lt;/from&gt;
&lt;heading&gt;Reminder&lt;/heading&gt;
&lt;body&gt;Don't forget me this weekend!&lt;/body&gt;
&lt;/note&gt;</description>
    </item>
    <item rdf:about="https://wiki.nicksoft.com/specifications:xml-schema:intro">
        <dc:format>text/html</dc:format>
        <dc:date>2009-01-31T18:23:07+03:00</dc:date>
        <title>Introduction to XML Schema</title>
        <link>https://wiki.nicksoft.com/specifications:xml-schema:intro</link>
        <description>XML Schema is an XML-based alternative to DTD.

An XML schema describes the structure of an XML document.

The XML Schema language is also referred to as XML Schema Definition (XSD).

What You Should Already Know


Before you continue you should have a basic understanding of the following:</description>
    </item>
    <item rdf:about="https://wiki.nicksoft.com/specifications:xml-schema:restrictions">
        <dc:format>text/html</dc:format>
        <dc:date>2009-01-31T18:11:15+03:00</dc:date>
        <title>XSD Restrictions/Facets</title>
        <link>https://wiki.nicksoft.com/specifications:xml-schema:restrictions</link>
        <description>Restrictions are used to define acceptable values for XML elements or attributes. Restrictions on XML elements are called facets.

Restrictions on Values


The following example defines an element called “age” with a restriction. The value of age cannot be lower than 0 or greater than 120:</description>
    </item>
    <item rdf:about="https://wiki.nicksoft.com/specifications:xml-schema:schema-schema">
        <dc:format>text/html</dc:format>
        <dc:date>2009-01-31T18:29:52+03:00</dc:date>
        <title>XSD - The  Element</title>
        <link>https://wiki.nicksoft.com/specifications:xml-schema:schema-schema</link>
        <description>The &lt;schema&gt; element is the root element of every XML Schema.

The &lt;schema&gt; Element


The &lt;schema&gt; element is the root element of every XML Schema:


&lt;?xml version=&quot;1.0&quot;?&gt;

&lt;xs:schema&gt;

...
...

&lt;/xs:schema&gt;


The &lt;schema&gt; element may contain some attributes. A schema declaration often looks something like this:</description>
    </item>
    <item rdf:about="https://wiki.nicksoft.com/specifications:xml-schema:simpletype">
        <dc:format>text/html</dc:format>
        <dc:date>2009-01-31T17:50:02+03:00</dc:date>
        <title>XML Schema simpleType Element</title>
        <link>https://wiki.nicksoft.com/specifications:xml-schema:simpletype</link>
        <description>Definition and Usage


The simpleType element defines a simple type and specifies the constraints and information about the values of attributes or text-only elements.

Element Information

	*  Parent elements: attribute, element, list, restriction, schema, union</description>
    </item>
    <item rdf:about="https://wiki.nicksoft.com/specifications:xml-schema:why-use">
        <dc:format>text/html</dc:format>
        <dc:date>2009-01-31T18:26:23+03:00</dc:date>
        <title>Why Use XML Schemas?</title>
        <link>https://wiki.nicksoft.com/specifications:xml-schema:why-use</link>
        <description>XML Schemas are much more powerful than DTDs.

XML Schemas Support Data Types


One of the greatest strength of XML Schemas is the support for data types.

With support for data types:


	*  It is easier to describe allowable document content
	*  It is easier to validate the correctness of data
	*  It is easier to work with data from a database
	*  It is easier to define data facets (restrictions on data)
	*  It is easier to define data patterns (data formats)
	*  It is easier to convert data be…</description>
    </item>
</rdf:RDF>
