Elemen anotasi Skema XML
Referensi Skema XML Lengkap
Definisi dan Penggunaan
Elemen anotasi adalah elemen tingkat atas yang menentukan komentar skema. Komentar berfungsi sebagai dokumentasi sebaris.
Informasi Elemen
- Elemen induk: Elemen apa pun
Sintaksis
<annotation
id=ID
any attributes
>
(appinfo|documentation)*
</annotation>
(Tanda * menyatakan bahwa elemen dapat muncul nol kali atau lebih di dalam elemen anotasi)
Attribute | Description |
---|---|
id | Optional. Specifies a unique ID for the element |
any attributes | Optional. Specifies any other attributes with non-schema namespace |
Contoh 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>
Referensi Skema XML Lengkap