<xsd:annotation> 元素

定义一个批注。

<annotation
  id = ID
  {any attributes with non-schema Namespace}...>
Content: (appinfo | documentation)*
</annotation> 

特性

  • id
    该元素的 ID。 id 值必须属于类型 ID 并且在包含该元素的文档中是唯一的。

    可选。

元素信息

出现次数

在父元素中一次。

父元素

任何元素

内容

appinfodocumentation

备注

批注可以包含 appinfo 元素(由应用程序使用的信息)和 documentation 元素(由用户读取或使用的注释或文本)。

示例

以下示例使用 annotationdocumentation 元素来形成一个简单类型和构成其定义的枚举。

其他资源

有关更多信息,请参见“W3C XML Schema Part 1: Structures Recommendation”(W3C XML 架构第 1 部分:结构建议),网址为:www.w3.org/TR/2001/REC-xmlschema-1-20010502/#element-all。

另请参见

参考

XML 架构 (XSD) 参考
XML 架构元素