XML Schema union Element
Complete XML Schema Reference Manual
Definition and Usage
The union element defines a collection of multiple simpleType definitions.
Element Information
- Parent elements: simpleType
Syntax
id=ID memberTypes="list of QNames" any attributes (annotation?,(simpleType*)) (The ? symbol declares that within the union element, the element can appear zero or one time.) This example is a simple type that combines two simple types:
property
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 a non-schema namespace.
Example 1
Complete XML Schema Reference Manual