自定义XSD对XML校验,eclipse校验出现如下错误:
XML内容:
<PrimaryKey>123456</PrimaryKey>
错误提示:
Element must have no character or element information item [children], because the type's content type is empty
修改前的XSD定义:
<xs:element name="PrimaryKey" type="KeyType" nillable="false" maxOccurs="15"/> <xs:complexType name="KeyType"> <xs:attribute name="type" default="STRING" use="optional"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:pattern value="\d+" /> </xs:restriction> </xs:simpleType> </xs:attribute> </xs:complexType>
将 KeyType修改为继承自xs:string后通过。
<xs:complexType name="KeyType"> <xs:simpleContent> <xs:extension base="xs:string"> <xs:attribute name="type" default="STRING" use="optional"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:pattern value="\d+" /> </xs:restriction> </xs:simpleType> </xs:attribute> </xs:extension> </xs:simpleContent> </xs:complexType>
参考文档:http://stackoverflow.com/questions/4432183/xml-schema-definition-problem
相关推荐
Tom Cover的经典信息论书,没有繁琐的数学,着重理解
wordpress 下elementor插件的 elementor-pro版本。 文件夹里面含有两个插件,一个是免费版本,一个是Pro版本。 【操作步骤】 1、先安装免费版本(如果之前已经安装了免费版本就不用再重复安装) 2、安装Pro版本 ...
wordpress插件:elementor-free-v3.1.4+elementor-pro-v3.2.1.zip 安装方式: 1.安装elementor-free-v3.1.4 2.安装elementor-pro-v3.2.1 如果已安装过elementor,建议先备份数据,随后禁用、删除elementor,同时清空...
Element of Information Theory By Thomas M. Cover and Joy A. Thomas
Elementor是一个易于使用的WordPress页面构建器插件,具有可视拖放界面。它具有各种元素,使您可以使用拖放工具简单地组织页面上的内容。该插件根本不需要编码来配置其设置和创建页面。 有超过2000,000个有效安装,...
elementor pro 3.7.2 + elementor 3.6.6 Nulled
Elementor Pro v3.5.1 插件
你好元素孩子获得一个跳跃开始建立使用你好Elementor孩子,一个孩子的主题WordPress主题 。安装通过Composer安装(推荐)在WordPress项目根目录中,运行: composer create-project bmarshall511/hello_elementor_...
完全Elementor+Elementor Pro兼容性 演示内容导入器和主题设置需要Elementor Pro 包装中免费包含价值170美元的优质Getty Images库存 演示网站上显示的所有图像均附带演示内容,可用于您的下一个项目,无需购买额外...
elementor pro nulled for wordpress
因为Elementor编辑器的简洁、好用,越来越多的人开始将其作为自己WordPress站点的页面编辑器,同时许多主题也开始集成Elementor
elementor pro插件基础介绍: 今天推荐的是 页面构建插件 Elementor PRO v2.10.0 Elementor插件可以在WordPress商店中下载 而Elementor PRO是一个全能的WordPress页面构建器,允许你在没有任何代码基础的情况下,...
elementor-2.7.5 nulled + elementor-pro-2.7.3 nulled cd /var/www/html/wp-content/plugins // 到这个目录 rz -be //上传 unzip //大功告成
Element of information Thomas M Cover
Elementor是目前最强大的页面构建器。完全拖放式可视化编辑,是WordPress中最快,最直观的编辑器。只需拖放即可自定义,对于新手非常友好,非常易于使用和掌握。无需编码; 生成的页面代码紧凑且针对每个设备进行了...
wordpress拖拽式建站插件,所见即所得elementor-pro2.4.8,最受欢迎的页面设计器
Elementor is the best FREE WordPress Website Builder
WP插件介绍 Elementor是一款强大而又简易操作的可视化页面生成插件,插件集成了28中常用的小部件,以及建议的拖动式模块,让页面生成更加的简洁明了.
WordPress主题实用自适应编辑页面/文章插件Elementor,是最流行的可视化编辑器。Elementor是一款非常现代的页面编辑器,作为最流行的免费页面编辑插件,它改变了WordPress建站的方式,让我们可以无需代码便能自己...