<xsd:appinfo> 元素

指定 annotation 元素中应用程序要使用的信息。

<appinfo
  source = anyURI>
Content: ({any})*
</appinfo> 

属性

  • source
    应用程序信息的来源。 来源必须是 URI 引用。 可选项。

元素信息

出现次数

无限制。

父元素

annotation

内容

任何格式正确的 XML 内容。

备注

应用程序使用在 appinfo 元素内提供的信息处理指令。

示例

以下示例使用 annotationappinfodocumentation 元素。

<?xml version="1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="State">
    <xs:annotation>
      <xs:documentation>State Name</xs:documentation>
      <xs:appinfo>Application Information</xs:appinfo>
    </xs:annotation>
  </xs:element>
</xs:schema>

其他资源

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

另请参见

参考

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