You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@xml.apache.org by Sean Kelly <ke...@ad1440.net> on 2000/08/29 00:52:34 UTC
Re: Are DTD elements hierarchical?
Are DTD elements hierarchical?????????Yes, your "name" element is defined
twice in your DTD, which is illegal.
You can have your "name" element occur at multiple levels---there's no
problem with that. But the "name" element has to have the same content
model (PCDATA in your case) no matter where it occurs.
So pick one of your
<!ELEMENT name (#PCDATA)>
lines in your DTD and delete it. It doesn't matter which one.
--Sean