Difference between xs and xsd in XML schema file?

前端 未结 3 1837
梦谈多话
梦谈多话 2021-01-30 15:24

What is the difference between the xs and xsd prefixes in XML schema files?

3条回答
  •  粉色の甜心
    2021-01-30 16:21

    From the XSD 1.0 spec on w3.org:

    The XML representation of schema components uses a vocabulary identified by the namespace name http://www.w3.org/2001/XMLSchema. 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.

    in the end xs or xsd are only prefixes. XSD is used for example more by Microsoft schemas.

    The important is how you declare the namespace.

    
      ...
    
    

    or

    
      ...
    
    

    should be equivalent.

提交回复
热议问题