下面的文件正確嗎?為什么?用IE和本章中的解析器驗證你的結(jié)論。
mes.dtd
<!ELEMENT message ANY>
<!ELEMENT persion (name,age?,lxfs)>
<!ELEMENT lxfs (#PCDATA,tel|email)*>
<!ELEMENT name (first,last)>
<!ATTLIST name sex (male|female) "male">
<!ELEMENT first %pc; >
<!ELEMENT last %pc;>
<!ELEMENT age %pc;>
<!ELEMENT tel %pc;>
<!ELEMENT email %pc;>
<!ENTITY % pc “(#PCDATA)”>
<!ELEMENT emergency EMPTY>
<!ATTLIST emergency
fire CDATA #FIXED "119"
police CDATA #FIXED "110"
hospital CDATA #FIXED "120"
>
mes.xml
<?xml version="1.0" encoding="gb2312"?>
<!DOCTYPE SYSTEM "mes.dtd">
<message>
<persion>
<name sex="男">
<first>li</first>
<last>xiao</last>
</name>
<age>25</age>
<lxfs>
<tel>123456</tel>
</lxfs>
</persion>
<persion>
<name>
<first>wang</first>
<last>xiao</last>
</name>
<lxfs></lxfs>
</persion>
<emergency fire="120" police="110" />
</message>