XML Schema 教程教程
XML Schema documentation 元素
XML Schema documentation 元素
XML Schema documentation 元素
完整 XML Schema 参考手册
定义和用法
documentation 元素在 schema 中输入文本注释。该元素必须位于 annotation 元素内。
元素信息
- 父元素: annotation
语法
<documentation
source=URI reference
xml:lang=language>
Any well-formed XML content
</documentation>
source=URI reference
xml:lang=language>
Any well-formed XML content
</documentation>
属性 | 描述 |
---|---|
source | 可选。规定应用程序信息的来源。 |
xml:lang | 可选。规定内容中使用的语言。 |
实例 1
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:annotation>
<xs:appinfo>verydoc Note</xs:appinfo>
<xs:documentation xml:lang="en">
This Schema defines a verydoc note!
</xs:documentation>
</xs:annotation>
.
.
.
</xs:schema>
<xs:annotation>
<xs:appinfo>verydoc Note</xs:appinfo>
<xs:documentation xml:lang="en">
This Schema defines a verydoc note!
</xs:documentation>
</xs:annotation>
.
.
.
</xs:schema>
完整 XML Schema 参考手册
XML Schema documentation 元素 |
---|
XML Schema 教程
XML Schema 是基于 XML(可扩展标记语言),描述了 XML 文档的合法构建模块,可替代 DTD(文档类型定义)。XML Schema 是 W3C 的推荐标准。