/// <summary> /// Checks whether an element using this group can contain a specified element. /// </summary> /// <param name="name">The name of the element to look for.</param> /// <param name="dtd">The DTD to use during the checking.</param> /// <returns>true if an element using this group can contain the element, otherwise false.</returns> public bool CanContain(string name, SgmlDtd dtd) { if (m_declaredContent != DeclaredContent.Default) { return(false); // empty or text only node. } return(m_model.CanContain(name, dtd)); }