XML स्कीमा फ़ील्ड तत्व
❮ पूर्ण XML स्कीमा संदर्भ
परिभाषा और उपयोग
फ़ील्ड तत्व एक XPath व्यंजक निर्दिष्ट करता है जो किसी पहचान बाधा को परिभाषित करने के लिए उपयोग किए गए मान को निर्दिष्ट करता है।
तत्व जानकारी
- मूल तत्व: कुंजी, कीरेफ़, अद्वितीय
वाक्य - विन्यास
<field
id=ID
xpath=XPath expression
any attributes
>
(annotation?)
</field>
(चिह्न घोषित करता है कि तत्व शून्य या एक बार क्षेत्र तत्व के अंदर हो सकता है)
Attribute | Description |
---|---|
id | Optional. Specifies a unique ID for the element |
xpath | Required. Identifies a single element or attribute whose content or value is used for the constraint |
any attributes | Optional. Specifies any other attributes with non-schema namespace |
उदाहरण 1
निम्न उदाहरण एक फ़ील्ड तत्व दिखाता है जो "userID" विशेषता को पहचान बाधा के लिए उपयोग करने के लिए फ़ील्ड के रूप में निर्दिष्ट करता है:
<xs:field xpath="@userID"/>
❮ पूर्ण XML स्कीमा संदर्भ