XML Schema list Element
Complete XML Schema Reference Manual
Definition and Usage
The list element defines a collection of single simpleType definitions.
Element Information
- Parent elements: simpleType
Syntax
id=ID itemType=QName any attributes (annotation?,(simpleType?)) (The ? symbol declares that within the list element, the element can appear zero or one time.) The following example shows a simple type for a list of integers: The "intvalues" element in the document looks like this (note that this list has five list items): Note: Spaces are used as separators for the list items. The following example shows a simple type for a list of strings: The "stringvalues" element in the document looks like this (note that this list has four list items):
property
Description
id
Optional. Specifies a unique ID for the element.
itemType
The name of a built-in data type or simpleType element defined in this schema (or in another schema indicated by the specified namespace). The simpleType element containing the list element is derived from the simple type specified by the list value. The list value must be a qualified name (QName). This attribute is not allowed if the content contains a simpleType element; otherwise it is required.
any attributes
Optional. Specifies any other attributes with a non-schema namespace.
Example 1
Example 2
Complete XML Schema Reference Manual