XML -Schema- Anmerkungselement
❮ Vollständige XML-Schema-Referenz
Definition und Verwendung
Das Anmerkungselement ist ein Element der obersten Ebene, das Schemakommentare angibt. Die Kommentare dienen als Inline-Dokumentation.
Elementinformationen
- Übergeordnete Elemente: Beliebiges Element
Syntax
<annotation
id=ID
any attributes
>
(appinfo|documentation)*
</annotation>
(Das *-Zeichen gibt an, dass das Element null oder mehrmals innerhalb des Anmerkungselements vorkommen kann.)
Attribute | Description |
---|---|
id | Optional. Specifies a unique ID for the element |
any attributes | Optional. Specifies any other attributes with non-schema namespace |
Beispiel 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>
❮ Vollständige XML-Schema-Referenz