Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

XML Schema union Element

XML Schema union Element


XML Schema Reference Manual Complete XML Schema Reference Manual


Definition and Usage

The union element defines a collection of multiple simpleType definitions.

Element Information

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.)

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

This example is a simple type that combines two simple types:

  xs:simpleType

    

  

  

    

  

  

    

    

    

  


XML Schema Reference Manual Complete XML Schema Reference Manual