如果我有:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE country[
<!ELEMENT country
(president | king | (king,queen) | queen)>
<!ELEMENT president (#PCDATA)>
<!ELEMENT king (#PCDATA)>
<!ELEMENT queen (#PCDATA)>
]>
(president | king | (king,queen) | queen)>
如果我们尝试验证
<country><king>Luis</king></country>
我们收到错误消息,为什么会生成以下错误[...]Both 1st and 2nd occurence of "king" are possible
。如果我写:(president | (king) | (king,queen) | queen)>
?