public void SetDeclaredContent(string dc)
{
// TODO: Validate that this can never combine with nexted groups?
switch (dc)
{
case "EMPTY":
this.m_declaredContent = DeclaredContent.EMPTY;
break;
case "RCDATA":
this.m_declaredContent = DeclaredContent.RCDATA;
break;
case "CDATA":
this.m_declaredContent = DeclaredContent.CDATA;
break;
default:
throw new SgmlParseException(string.Format(CultureInfo.CurrentUICulture, "Declared content type '{0}' is not supported", dc));
}
}