How would you define a DTD statement from an XML document where a specific element has an attribute, and depending on this attribute, has differing child elements.
For example in this case:
<tv_program>
<!-- Various elements here -->
<program type = "live chat">
<presenter></presenter>
<guests></guests>
</program>
<program type = "documentary">
<short_descrip></short_descrip>
</program>
<program type = "film">
<title></title>
<genre></genre>
<rating></rating>
</program>
</tv_program>
What would be the structure of declaring the child elements (presenter, guest, etc.) within each specific attribute type (live chat, documentary, film) in a DTD?