DTD的定义

来源:互联网 发布:月九星飞宫图计算法 编辑:程序博客网 时间:2024/05/17 04:59

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE poem[
 <!ELEMENT poem (author , title ,content )>
 <!ELEMENT author (#PCDATA)>
 <!ELEMENT title (#PCDATA)>
 <!ELEMENT content (#PCDATA)>
]>

<poem>
 <author>laizhibing</author>
 <title>J2EE</title>
 <content>hello ,World</content>
</poem>

原创粉丝点击