XML Schema documentation 元素
定义和用法
documentation 元素在 schema 中输入文本注释。该元素必须位于 annotation 元素内。
元素信息
| 出现次数 | 无限制 |
| 父元素 | annotation |
| 内容 | 任何格式正确的 XML 内容。 |
语法
<documentation source=URI reference xml:lang=language > Any well-formed XML content </documentation>
| 属性 | 描述 |
|---|---|
| source | 可选。规定应用程序信息的来源。 |
| xml:lang | 可选。规定内容中使用的语言。 |
实例
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:annotation> <xs:appInfo>W3School Note</xs:appInfo> <xs:documentation xml:lang="en"> This Schema defines a W3School note! </xs:documentation> </xs:annotation> . . . </xs:schema>