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

XML Schema unique Element

XML Schema unique Element


XML Schema Reference Manual Complete XML Schema Reference Manual


Definition and Usage

The unique element specifies that an attribute or element value (or a combination of attribute or element values) must be unique within a specified scope. The value must be unique or zero.

The unique element must contain the following elements in order:

Element Information

Syntax

id=ID

name=NCName

any attributes

(annotation?,(selector,field+))

(The ? symbol declares that within the unique element, the element can appear zero or one time.)

property Description
id Optional. Specifies a unique ID for the element.
name Required. Specifies a name for the element.
any attributes Optional. Specifies any other attributes with a non-schema namespace.

XML Schema Reference Manual Complete XML Schema Reference Manual