使用xig工具从schema生成schema实例
来源:互联网 发布:广州艺知艺术培训学校 编辑:程序博客网 时间:2024/05/18 03:56
1,下载xig工具,xml-xig-0.1.1.jar可以到一下链接下载
2.编写schema文件,如下:
<?xml version="1.0" encoding="UTF-8" ?><xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://my.soa.com" targetNamespace="http://my.soa.com" elementFormDefault="qualified"> <xs:element name="person" > <xs:complexType> <xs:sequence> <xs:element name="firstname" type="xs:string"/> <xs:element name="lastname" type="xs:string"/> </xs:sequence> </xs:complexType> </xs:element> </xs:schema>
3.运行命令行:
4.person.xsd.xml文件如下:
<person> <firstname>?{string}</firstname> <lastname>?{string}</lastname></person>
4person.xig
<xig:template document='person' schema='e:/xmlwϰ/person.xsd' xmlns:xds='http://xml-xsd.sourceforge.net/schema/XmlXsd-0.1'> <person> <firstname>${xs:string}</firstname> <lastname>${xs:string}</lastname> </person> <xig:generate> <!-- Generate instance documents from template document above --> <loop count='10'> </loop> </xig:generate></xig:template>
0 0
- 使用xig工具从schema生成schema实例
- mondrian中schema文件生成工具schema-workbench的介绍和使用
- 从class生成xsd(xml schema)文件
- Schema
- schema
- Schema
- schema
- Schema
- Schema
- Schema
- Schema
- Schema
- schema
- Schema
- Schema
- Schema
- Schema
- Schema
- JVM内存区域模型
- 网络语音技术
- Knockout应用开发指南 第七章:Mapping插件
- 第一个Activety添加控件
- ant
- 使用xig工具从schema生成schema实例
- 使用jprobe构建镜像协议栈的原理与感悟
- 局部变量,全局变量,静态全局变量
- [leetcode]50 Count and Say
- Android 5.1升级概要
- 1561: (More) Multiplication
- VS在查找预编译头使用时跳过解决
- R语言基本画图函数与多图多线
- 安卓-MotionEvent之ACTION_CANCEL