<!ELEMENT foo ( foo*, bar* )>
<!ATTLIST foo answer CDATA #IMPLIED>
<!ELEMENT bar (#PCDATA)>
and a document with:
<!-- top-level "foo" element -->
<foo>
<!-- first nested "foo" element -->
<foo answer="yes">
<bar>this one</bar>
<bar>that one</bar>
</foo>
<!-- second nested "foo" element -->
<foo answer="no">
<bar>the other one</bar>
</foo>
<!-- third nested "foo" element (empty) -->
<foo/>
</foo>
Is this legal?
Chris