องค์ประกอบคำอธิบายประกอบ XML Schema
❮ การอ้างอิงสคีมา 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 ที่สมบูรณ์