Microsoft XML 2.5 SDK


 

datatype Element

[This is preliminary documentation and subject to change.]

Specifies the data type for the ElementType or AttributeType element.

Syntax

<datatype

    dt:type="datatype">

Attributes

dt:type

Data type. For a list of valid values, see XML Data Types Preview.

<ElementType name="colors">  
   <datatype dt:type="char"/>
</ElementType>

Element Information

Number of occurrences 1
Parent elements AttributeType, ElementType
Child elements (No child elements)
Requires closing tag Yes. XML Schema is an XML grammar and, like all XML grammars, all tags must have closing tags to satisfy the definition of well-formed.

Remarks

The datatype functionality is an extension offered by XML Schema that cannot be specified using the document type definition (DTD) syntax.