dtd方式文档定义
2011-11-11 10:29
232 查看
<?xml version="1.0" encoding="UTF-8"?> <!ELEMENT department (employee)> <!ATTLIST department id CDATA #REQUIRED> <!ELEMENT employee (name,title,staff?)> <!ELEMENT name (#PCDATA)> <!ELEMENT personal (department+)> <!ELEMENT staff (employee+)> <!ELEMENT title (#PCDATA)>
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE personal SYSTEM "t2.dtd"> <personal> <department id="销售部门"> <employee> <name>宋江</name> <title>副总经理</title> <staff> <employee> <name>柴进</name> <title>经理</title> <staff> <employee> <name>武松</name> <title>销售人员</title> </employee> <employee> <name>李逵</name> <title>销售人员</title> </employee> </staff> </employee> <employee> <name>公孙胜</name> <title>财物主管</title> </employee> </staff> </employee> </department> <department id="管理部门"> <employee> <name>卢俊义</name> <title>副总经理</title> <staff> <employee> <name>林冲</name> <title>经理</title> <staff> <employee> <name>关胜</name> <title>职员</title> </employee> <employee> <name>扈三娘</name> <title>职员</title> </employee> </staff> </employee> <employee> <name>阮小二</name> <title>主管</title> </employee> </staff> </employee> </department> <department id="市场部门"> <employee> <name>吴用</name> <title>副总经理</title> <staff> <employee> <name>时迁</name> <title>擢升主管</title> </employee> <employee> <name>戴宗</name> <title>广告主管</title> </employee> </staff> </employee> </department> </personal>
相关文章推荐
- 有效的XML: DTD(文档类型定义)介绍与三种使用方式
- 关于loose.dtd和xhtml1-transitional.dtd等文档类型定义模型中CSS失效的解决办法。
- XML文档定义有几种形式?解析XML文档有哪几种方式?
- DTD 文档类型定义
- 有效的XML: DTD(文档类型定义)介绍
- 前端探秘--DTD(文档类型定义标签)
- Java - XML文档定义有几种形式?它们之间有何本质区别?解析XML文档有哪几种方式?
- xml的文档定义和dtd简单入门
- XML文档类型定义---DTD文档
- 关于loose.dtd和xhtml1-transitional.dtd等文档类型定义模型中CSS失效的解决办法。
- XML文档类型定义---DTD文档
- 使用DTD文档对 xml 1 作业中的xml文档进行约束,其中河北省只能依次包含石家庄市、张家口市、保定市这三个市,保定市可以有多个或者1个,给保定市定义属性编号为ID类型,必须有;属性name为字符
- DTD文档类型定义
- 前端探秘--DTD(文档类型定义标签)
- XML文档定义有几种形式?它们之间有何本质区别?解析XML文档有哪几种方式?
- 高人的文章:关于loose.dtd和xhtml1-transitional.dtd等文档类型定义模型中CSS失效的解决办法。
- XML 文档定义 DTD,XML Schema
- 前端探秘--DTD(文档类型定义标签)
- XML文档类型定义 DTD详解