加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

XML模式文件中xs和xsd之间的区别?

发布时间:2020-12-16 02:01:03 所属栏目:百科 来源:网络整理
导读:XML模式文件中的xs和xsd前缀之间有什么区别? 从 the XSD 1.0 spec on w3.org: The XML representation of schema components uses a vocabulary identified by the namespace name 07001. For brevity,the text and examples in this specification use th
XML模式文件中的xs和xsd前缀之间有什么区别?
从 the XSD 1.0 spec on w3.org:

The XML representation of schema
components uses a vocabulary
identified by the namespace name
07001. For
brevity,the text and examples in this
specification use the prefix xs: to
stand for this namespace; in practice,
any prefix can be used.

在结束xs或xsd只是前缀。 XSD例如更多地由Microsoft模式使用。

重要的是如何声明命名空间。

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
  ...
</xs:schema>

要么

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  ...
</xsd:schema>

应该是等效的。

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读