Chinaunix首页 | 论坛 | 博客
  • 博客访问: 402627
  • 博文数量: 95
  • 博客积分: 5001
  • 博客等级: 大校
  • 技术积分: 1030
  • 用 户 组: 普通用户
  • 注册时间: 2007-05-13 11:43
文章分类

全部博文(95)

文章存档

2007年(95)

我的朋友

分类: 系统运维

2007-05-22 18:47:11

1.author.dtd









2.book.dtd







3.publisher.dtd







4.all.dtd



%author;

%book;

%publisher;


5.bookxml.xml


   
        dingyuechao
        man
        ding@jum.edu.cn
   

   
        gongtao
        man
   




6.boolxml1.xml


   
        jisuanji
        19.7
   

   
        powerbuilder
        48.0   
   




7.book2.xml


   
        gaojiao
       
beijing55hao

   

   
        tiedaochubanshe
       
chinaxuanwu8hao

   



8.main.xml

   
   
   
]>

&authors;
&books;
&publishers;



结果:
xml version="1.0" encoding="UTF-8" standalone="no" ?>
  (View Source for full doctype...)>
- <volume>
- <authors>
- <author id="a0001" ISBN="ISBN7-04-014768-8">
  <a_name>dingyuechaoa_name>
  <sex>mansex>
  <email>ding@jum.edu.cnemail>
  author>
- <author id="a0002" ISBN="ISBN7-04-014768-2">
  <a_name>gongtaoa_name>
  <sex>mansex>
  author>
  authors>
- <books>
- <book ISBN="ISBN7-04-014768-8">
  <b_name>jisuanjib_name>
  <price>19.7price>
  book>
- <book ISBN="ISBN7-04-014768-2">
  <b_name>powerbuilderb_name>
  <price>48.0price>
  book>
  books>
- <publishers>
- <publisher ISBN="ISBN7-04-014768-8">
  <p_name>gaojiaop_name>
  <address>beijing55haoaddress>
  publisher>
- <publisher ISBN="ISBN7-04-014768-2">
  <p_name>tiedaochubanshep_name>
  <address>chinaxuanwu8haoaddress>
  publisher>
  publishers>
  volume>


注:在xmlspy2006汉化版中,会出现问题
" 该文件不具有良好格式
DOCTYPE-ExteRnalID名称必须既是SYSTEM又是PUBLIC"

版本的问题,其实并没有错误,换成英文版就ok了。

只是一个演示例子。


阅读(1316) | 评论(0) | 转发(0) |
0

上一篇:XML语法

下一篇:PHP中header()函数使用说明

给主人留下些什么吧!~~