Scheme 约束解答

    xmlns:xsi  (xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance")-- indicates that the elements and data types used in the schema come from the " http://www.w3.org/2001/XMLSchema-instance " namespace. spa

    It also specifies that the elements and data types that come from the " http://www.w3.org/2001/XMLSchema-instance " namespaceshould be prefixed with xsi.orm

    

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

         targetNamespace="http://www. itcast.cn"ci

         elementFormDefault="qualified">element

<xs:schema>文档

targetNamespace元素用于指定schema文档中声明的元素属于哪一个名称空间。get

    schemaLocation此属性有两个值。第一个值是须要使用的命名空间。第二个值是供命名空间使用的XML schema 的位置,二者之间用空格分隔。it

相关文章
相关标签/搜索