XML Schema selector
Element
Definition and Usage
The selector
element specifies an XML Path Language (XPath) expression that selects a set of elements (unique, key, and keyref elements) for identification constraints.
Element Information
- Parent elements: key, keyref, unique
Syntax
(? symbol indicates that the element can appear zero or one time within the restriction element.)
Attribute | Description |
---|---|
id | Optional. Specifies a unique ID for the element. |
xpath | Required. Specifies an XPath expression relative to the declared element. This expression identifies the child elements to which the identification constraint (declared element) applies. |
any attributes | Optional. Specifies any other attributes with non-schema namespaces. |