public AttDef FindAttribute(string name) { if(AttList == null) { AttList = new AttList(); AttList.Add(new AttDef(name)); } return AttList[name.ToUpper()]; }
void ParseAttList(AttList list, char term) { char ch = this.current.SkipWhitespace(); while (ch != term) { if (ch == '%') { Entity e = ParseParameterEntity(SgmlDtd.peterm); PushEntity(this.current.ResolvedUri, e); ParseAttList(list, Entity.EOF); PopEntity(); ch = this.current.SkipWhitespace(); } else if (ch == '-') { ch = ParseDeclComments(); } else { AttDef a = ParseAttDef(ch); list.Add(a); } ch = this.current.SkipWhitespace(); } }