عنصر التعليق التوضيحي لمخطط XML
❮ مرجع مخطط 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 الكامل