XML Schema selector element
Definition and usage
The selector element specifies the XML path language (XPath) expression, which is an identifier constraint to select a set of elements (unique, key, and keyref elements).
element information
occurrence times |
once |
parent element |
key, keyref, unique |
content |
annotation |
syntax
<selector
id=ID
xpath=a subset of XPath expression
any attributes
>
(annotation?)
</selector>
Attribute |
Description |
id |
Optional. Specifies the unique ID of the element. |
xpath |
Required. Specifies the XPath expression relative to the declared element. This expression identifies the child elements that apply the identification constraint (declared element). |
any attributes |
Optional. Specifies any other attributes with non-schema namespace. |