XML Schema union
Element
Definition and Usage
The union
element defines a collection of multiple simpleType
definitions.
Element Information
-Parent element: simpleType
Syntax
(? The question mark indicates that the element can appear zero or one time within the union
element.)
Attribute | Description |
---|---|
id | Optional. Specifies a unique ID for the element. |
memberTypes | Optional. Specifies a list of names of built-in data types or simpleType elements defined in the schema. |
any attributes | Optional. Specifies any other attributes with non-schema namespaces. |
Example 1
This example is a simple type that combines two simple types: