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

XML Schema selector Element

XML Schema selector Element


XML Schema Reference Manual Complete XML Schema Reference Manual


Definition and Usage

The selector element specifies an XML Path Language (XPath) expression that selects a set of elements for an identity constraint (unique, key, and keyref elements).

Element Information

Syntax

id=ID

xpath=a subset of XPath expression

any attributes

(annotation?)

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

property Description
id Optional. Specifies a unique ID for the element.
xpath Required. Specifies an XPath expression relative to the declared element. The expression identifies the child elements to which the identity constraint (the declared element) applies.
any attributes Optional. Specifies any other attributes with a non-schema namespace.

XML Schema Reference Manual Complete XML Schema Reference Manual