Magazine |
| | Community |
| | Workshop |
| | Tools & Samples |
| | Training |
| | Site Info |
|
|
||||||||
|
Refers to a declared attribute type that can appear within the scope of the named ElementType element.
Syntax
<Attribute default="default-value" required="{yes | no}" >
Attributes
- default
- Default value for the attribute. This specified default takes precedence over any default provided on the AttributeType element it refers to.
- required
- Indicator of whether the attribute must be present.
Element Information
Number of occurrences Number of attribute types specified in the schema. Parent elements AttributeType, ElementType, group 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
When the required attribute is set to "yes" and the default attribute specifies a default value, the supplied default value must always be the value, and documents containing other attribute values are invalid.
When the required attribute is set to "yes" and no default is specified, each element whose type is declared to have the attribute must supply its value.
Does this content meet your programming needs? Write us!
© 1998 Microsoft Corporation. All rights reserved. Terms of use.