`

xml schema namespace相关

    博客分类:
  • xml
阅读更多

 

W3school http://www.w3school.com.cn/schema/schema_schema.asp

namesapace啊,我心中永远的痛。

 

 

1、xmlns:xs="http://www.w3.org/2001/XMLSchema"

显示 schema 中用到的元素和数据类型来自命名空间 "http://www.w3.org/2001/XMLSchema"。同时它还规定了来自命名空间 "http://www.w3.org/2001/XMLSchema" 的元素和数据类型应该使用前缀 xs:

 

2、targetNamespace="http://www.w3school.com.cn" 

显示被此 schema 定义的元素 (note, to, from, heading, body) 来自命名空间:"http://www.w3school.com.cn"。

 

3、xmlns="http://www.w3school.com.cn"

指出默认的命名空间是 "http://www.w3school.com.cn"。

 

4、elementFormDefault="qualified" 

指出任何 XML 实例文档所使用的且在此 schema 中声明过的元素必须被命名空间限定。

 

5、xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 

可用的 XML Schema 实例命名空间

 

6、xsi:schemaLocation="http://www.w3school.com.cn note.xsd"

第一个值是需要使用的命名空间。第二个值是供命名空间使用的 XML schema 的位置:


 

分享到:
评论

相关推荐

    maven项目使用assembly打包jar时处理Unable to locate Spring NamespaceHandler问题

    使用assembly插件打包jar后启动时,总是出现Unable to locate Spring NamespaceHandler for XML schema....错误,网上找了各种方法都没有用,在尝试了100+失败后,解决了这个问题,在打包的jar中,META-INF目录下,...

    MS XML 6.0 SDK 文档

    The XML Data Reduced schema definition language (XDR), which Microsoft introduced support for top assist with XML schema working needs while awaiting the now final W3C standard XML Schema Definition ...

    Java and XML, 3rd Edition

    书中的主题如下: *XML基础,包括DTD、命名空间(namespace)、XML Schema和数据格式转换 (Transformation) *SAX应用程序编程接口,包括处理器接口、过滤器接口和写出接口 *DOM应用程序编程接口,...

    dubbo.xsd文件

    xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:beans="http://www.springframework.org/schema/beans" xmlns:tool="http://www.springframework.org/schema/tool" targetNamespace=...

    JAVA与XML.rar

    书中的主题如下: XML基础,包括DTD、命名空间(namespace)、XML Schema和数据格式转换(Transformation) SAX应用程序编程接口,包括处理器接口、过滤器接口和写出接口 DOM应用程序编程接口,包括DOM第2层、第3层...

    Java与XML第三版本

    书中的主题为XML基础,包括DTD、命名空间(namespace)、XML Schema和数据格式转换(Transformation) SAX应用程序编程接口,包括处理器接口、过滤器接口和写出接口 DOM应用程序编程接口,包括DOM第2层、第3层和DOM ...

    DIXML v5.9.0 for D6-XE10.1 XML XSLT EXSLT 解析

    DIXml is an embedded XML, XSLT, and EXSLT processing library for Delphi (Embarcadero / CodeGear / Borland). It is build on the libxml2, libxslt and libexslt libraries but requires no DLLs nor other ...

    xml入门教程/xml入门教程

    &1.XML简介 XML的背景 1) XML代表可扩展的标记语言(eXtensible Markup Language); 2) XML由W3C联盟发展维护;...Schema 也是XML文档,用于定义XML文档的结构。 目标名域 <xs:schema xmlns:xs="http://www....

    JDOM创建XML完整实例和jdom-2.0.5.jar

    在工作中发现jdom生成xml标签如<taxML xmlns:xsi="http://www.worg/2001/XMLSchema-instance" xsi:type="Fb1"cnName="附表1" name="Fb1"version="SW5001-2006"> 不能用冒号的问题root.setAttribute("xsi:type", "fb1...

    dubbo.xsd阿里巴巴开源xsd文件

    xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:beans="http://www.springframework.org/schema/beans" xmlns:tool="http://www.springframework.org/schema/tool" targetNamespace=...

    springAOP demo 带错误解决文档

    在搭建spring项目时通常需要这些jar包 ...org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace ...

    ONVIF WSDL and XML Schemas Specifications

    Nov 2010 - ONVIF Device Management Service WSDL, ver 1.2 Nov 2010 - ONVIF Event Service WSDL, ver 1.2 ...Nov 2010 - ONVIF Topic Namespace XML, ver 1.2 Nov 2010 - ONVIF Schema, ver 1.2

    JavaXML解析器FastXml.zip

    支持namespace,但不校验schema 为什么FastXml这么快尽可能少的解码字节:往往xml文档中的很多字节都是ASCII范围,它们可以直接强转成char,而不需要解码,比如:标签名、属性名,大部分时候只需要对属性值和...

    Matlab高阶谱分析(HOSA)工具箱及安装方法

    XML-file failed validation against schema located in: D:\Program Files\MATLAB\R2007b\sys\namespace\info\v1\info.xsd XML-file name: d:\program files\matlab\r2007b\toolbox\hosa_d\hosa\info.xml To ...

    将本体解析成固定格式

    - <schema namespace="onto"> <object name="Element" /> <object name="Node" isA="Element" /> <object name="Source" isA="Node" /> <object name="SF" isA="Source" /> ...

    accept方法源码java-peretesan.:此XML文件似乎没有与之关联的任何样式信息。文档树如下所示。元素或声明一个TilesCon

    此XML文件似乎没有与之关联的任何样式信息。 文档树如下所示。 <xsd uff1aschema xmlns =“” xmlns:xsd u201c” xmlns:beans =“” xmlns:tool u201c” targetNamespace =“” elementFormDefault u201c ...

    JXMLPad v4.1

    可用于编辑的XML/XHTML 文档特点:支持Javabeans的用法用DTD, Schema, RelaxNG将标签和实体的语法补充完整(从光标当前位置开始)用户可自定义事件工具条实时语法错误检测智能分析(Schema 检测)几个用于XML的标准...

    wahaha.zip

    以XML作为编码与传输的语法,此外,也需要透过XML的名称空间(Namespace)来指定宣告属性(Property)词汇的纲要(Schema)。RDF规格提供了两种XML语法来对RDF资料模型进行编码,第一种称为序列语法(Serialization syntax)...

    EasyBuys.zip

    RDF以XML作为编码与传输的语法,此外,RDF也需要透过XML的名称空间(Namespace)来指定宣告属性(Property)词汇的纲要(Schema)。RDF规格提供了两种XML语法来对RDF资料模型进行编码,第一种称为序列语法(Serialization ...

    thymeleaf-extras-eclipse-plugin-2.1-master.zip

    All you need to do is create an XML file that conforms to the schema above, then bundle that XML file with your JAR. Some notes on where you put that file in the JAR: it cannot go in the default ...

Global site tag (gtag.js) - Google Analytics