YouTip LogoYouTip

El Selector

XML Schema selector Element | Tutorial

Tutorial -- Learning is not just about technology, but also about dreams!

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

XML Schema Summary

XML Schema sequence Element

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


XML Schema Reference Complete XML Schema Reference


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.

XML Schema Reference Complete XML Schema Reference

← Appml WebstandardsEl Schema β†’