XML Schema elementem adnotacji
Definicja i Wykorzystanie
Adnotacja elementem jest element najwyższego poziomu, z góry określonego schematu adnotacje.
Element informacji
- Parent Element: dowolny element
gramatyka
<annotation
id=ID
any attributes
>
(appinfo|documentation)*
</annotation>
id=ID
any attributes
>
(appinfo|documentation)*
</annotation>
(* Znak deklaruje, że element może wystąpić zero lub więcej razy w elemencie adnotacji).
nieruchomość | opis |
---|---|
id | Opcjonalne. Unikalny identyfikator elementu. |
wszelkie atrybuty | Opcjonalne. Określa ona inne atrybuty nazw spoza schematu. |
Przykład 1
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:annotation>
<xs:appinfo>W3CSchool Note</xs:appinfo>
<xs:documentation xml:lang="en">
This Schema defines a W3CSchool note!
</xs:documentation>
</xs:annotation>
.
.
.
</xs:schema>
<xs:annotation>
<xs:appinfo>W3CSchool Note</xs:appinfo>
<xs:documentation xml:lang="en">
This Schema defines a W3CSchool note!
</xs:documentation>
</xs:annotation>
.
.
.
</xs:schema>
Kompletna XML Schema Reference