xs:union

Purpose

Creates a new simple type of variety union. The lexical value must validate against one (or more) of the member types. The member types form an ordered list, and are defined by:

the memberTypes attribute;
the xs:simpleType child node.

Parent element xs:simpleType
Child elements xs:annotation, xs:simpleType
Attributes id, memberTypes
Attributes
Name Type Description
id xs:ID Assigns an identifier to the schema node.
memberTypes xs:QName A whitespace-separated list of lexical QNames referencing global simple type declarations that contribute to the member types of the new simple type to be constructed.