XML中的schemaLocation属性
来源:互联网 发布:制造业软件 编辑:程序博客网 时间:2024/06/06 07:36
在 XML 实例文档中有时会发现有 schemaLocation 属性。很多人对此非常疑惑,搞不清这个属性究竟是什么意思,究竟该如何使用。 schemaLocation 属性用来引用(schema)模式文档,解析器可以在需要的情况下使用这个文档对 XML 实例文档进行校验。它的值(URI)是成对出现的,第一个值表示命名空间,第二个值则表示描述该命名空间的模式文档的具体位置,两个值之间以空格分隔。当然,在必要情况下,可以为 schemaLocation 属性指派多个这样的值对。 <p:Person xmlns:p="http://contoso.com/People" xmlns:v="http://contoso.com /Vehicles" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation= "http://contoso.com/People http://contoso.com/schemas/people.xsd http://contoso.com/schemas/Vehicles http://contoso.com/schemas/vehicles.xsd http://contoso.com/schemas/People http://contoso.com/schemas/people.xsd"> <name>John</name> <age>28</age> <height>59</height> <v:Vehicle> <color>Red</color> [...]
http://www.blogjava.net/javafuns/archive/2009/08/29/293049.html
- XML中的schemaLocation属性
- xml 添加xsi:schemaLocation 属性
- xml 添加xsi:schemaLocation 属性
- xml中的xmlns,xmlns:xsi,xsi:schemaLocation
- xml文件开始部分中的xmlns:和xsi:schemaLocation
- xml文件开始部分中的xmlns:和xsi:schemaLocation
- 关于spring xml文件中的xmlns,xsi:schemaLocation
- XML文档中的xmlns、xmlns:xsi和xsi:schemaLocation理解
- XML文档中的xmlns、xmlns:xsi和xsi:schemaLocation
- xsi:schemaLocation属性
- sping中 schemaLocation 属性设置
- xml文件参照XSD时开始部分中的xmlns:和xsi:schemaLocation
- web.xml开头<web-app>中的xmlns、xsi、schemaLocation、xsd等,命名空间
- XML文件中xsi:schemaLocation声明
- xml xmlns xmlns:xsi xsi:schemaLocation含义
- 我来说说XML文件中的xmlns、xmlns:xsi和xsi:schemaLocation、dtd文件的具体含义
- web.xml中的web-app中出现Attribute "xsi:schemaLocation" must be declared for element type "web-app".
- Manifest.xml中的属性
- unix的AIX,xlc生成动态库后为什么还要用ln -s 对*.so动态库生成软连接为*.a
- 堆排序
- CentOS6.7设置程序开机自启动
- setTimeout()与setInterval()的区别
- Java 自动装箱与拆箱(Autoboxing and unboxing)
- XML中的schemaLocation属性
- centos 7.0 网卡配置及重命名教程(转)
- 问题 Q 摆动序列
- lnmp安装WordPress无法加载主题列表、无法上传图片解决方案
- Android 性能数据采集
- iOS关于webview使用POST带参数的请求
- html打开网页直接定位
- [转载]vim 分屏
- 关于java访问修饰符的几个测试(jdk1.8)