The union element defines a simple type as a collection (union) of values from specified simple data types.
Element Information
- Parent elements: simpleType
Syntax
Union Data Types
Union data types are those whose value spaces and lexical spaces are the union of value spaces and lexical spaces of two or more other data types. A union data type enables an element or attribute value to be one or more instances of a type drawn from the union or combination of multiple atomic and list types. Union types have a memberTypes attribute value that is a list of all the types in the union. Union types can have pattern and enumeration facets.