एक्सएमएल स्कीमा एनोटेशन तत्व
❮ पूर्ण XML स्कीमा संदर्भ
परिभाषा और उपयोग
एनोटेशन तत्व एक शीर्ष स्तर का तत्व है जो स्कीमा टिप्पणियों को निर्दिष्ट करता है। टिप्पणियाँ इनलाइन दस्तावेज़ीकरण के रूप में कार्य करती हैं।
तत्व जानकारी
- मूल तत्व: कोई भी तत्व
वाक्य - विन्यास
<annotation
id=ID
any attributes
>
(appinfo|documentation)*
</annotation>
(* चिन्ह घोषित करता है कि तत्व एनोटेशन तत्व के अंदर शून्य या अधिक बार हो सकता है)
Attribute | Description |
---|---|
id | Optional. Specifies a unique ID for the element |
any attributes | Optional. Specifies any other attributes with non-schema namespace |
उदाहरण 1
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:annotation>
<xs:appinfo>W3Schools Note</xs:appinfo>
<xs:documentation xml:lang="en">
This Schema defines a W3Schools note!
</xs:documentation>
</xs:annotation>
.
.
.
</xs:schema>
❮ पूर्ण XML स्कीमा संदर्भ