Click to return to the XML (Extensible Markup Language) home page    
AttributeType Element     description Element     XML Schema Preview    
Web Workshop  |  XML (Extensible Markup Language)

datatype Element


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.



Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.