美文网首页
2018-06-22-xmlns\xsi:schemaLocat

2018-06-22-xmlns\xsi:schemaLocat

作者: 迪奥炸 | 来源:发表于2018-06-22 14:54 被阅读0次

    xmlns:namespace-prefix="namespaceURI"

    namespace-prefix:为自定义前缀,只要在这个XML文档中保证前缀不重复即可;

    namespaceURI:namespace-prefix的写法在对应的XML Namespace的定义,将其和前缀绑定;

    接下去就可以根据namespaceURI文件的内容,用namespace-prefix:xxx来确定元素xxx根据namespace-prefix解析

    单独一个xmlns,标识默认的Namespace 

    xmlns:xsi 表示使用xsi作为前缀的Namespace

    xsi:schemaLocation 是上面定义的xmlns:xs中的属性。它定义了namespaceURI和对应的XSD文档的位置关键【第一个URI是定义的XML Namespace的值,第二个URI给出Schema文档的位置】Schema处理器将从这个位置读取Schema文档

    相关文章

      网友评论

          本文标题:2018-06-22-xmlns\xsi:schemaLocat

          本文链接:https://www.haomeiwen.com/subject/zgykyftx.html