dtdElementValidEntry function

Determines whether an XML element allows a particular type of sub-element.