XML Schema selector Element | Tutorial
Tutorial -- Learning is not just about technology, but also about dreams!
- Home
- HTML
- JavaScript
- CSS
- Vue
- React
- Python3
- Java
- C
- C++
- C#
- AI
- Go
- SQL
- Linux
- VS Code
- Bootstrap
- Git
- Local Bookmarks
XML Schema Tutorial
XML Schema TutorialIntroduction to XML SchemasWhy use XML Schema?How to use XML SchemaXML schema elementXSD Simple ElementsXML Schema AttributesXML Schema Restrictions / FacetsXML Schema Complex ElementsXML Schema Complex Empty ElementsXML Schema Complex Type - Elements OnlyXML Schema Complex Element - Text OnlyXML Schema Complex Type - Mixed ContentXML Schema IndicatorsXML Schema any ElementXML Schema anyAttribute ElementXML Schema Element SubstitutionXML Schema ExampleXML Schema String Data TypesXML Schema Date/Time Data TypesXML Schema Numeric Data TypesXML Schema Miscellaneous Data TypesXML EditorXML Schema SummaryXML Schema Reference
Deep Dive
Programming
Software
Scripts
Development Tools
Web Design and Development
Web Service
Computer Science
Web Services
Programming Languages
Scripting Languages
XML Schema selector Element
Definition and Usage
The selector element specifies an XPath expression that selects a set of elements for an identity constraint (unique, key, and keyref elements).
Element Information
- Parent Elements: key, keyref, unique
Syntax
<selector
id=ID
xpath=a subset of XPath expression
_any attributes_
>
(annotation?)
</selector>
(The ? symbol declares that the element can occur zero or one time in 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 identity constraint (the declared element) applies. |
| any attributes | Optional. Specifies any other attributes with a non-schema namespace. |
YouTip