Name

xs:union

Attributes

memberTypes

A whitespace-separated list of the base types that may appear in the type

Contents

xs:annotation?,  xs:simpleType*

xs:union permits the creation of simple types that may take more than one kind of data—both an xs:boolean and an xs:byte, for example. The list of those types may appear in the memberTypes attribute and/or in child xs:simpleType elements. If both are used, the list of types will include both sets of possibilities.

Get XML Pocket Reference, 3rd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.