public void Add(string name, DTDAttListDeclaration decl) { DTDAttListDeclaration existing = this [name]; if (existing != null) { // It is valid, that is additive declaration. foreach (DTDAttributeDefinition def in decl.Definitions) { if (decl.Get(def.Name) == null) { existing.Add(def); } } } else { decl.SetRoot(Root); BaseAdd(name, decl); } }
public void Add(string name, DTDAttListDeclaration decl) { DTDAttListDeclaration dtdattListDeclaration = this[name]; if (dtdattListDeclaration != null) { foreach (object obj in decl.Definitions) { DTDAttributeDefinition dtdattributeDefinition = (DTDAttributeDefinition)obj; if (decl.Get(dtdattributeDefinition.Name) == null) { dtdattListDeclaration.Add(dtdattributeDefinition); } } } else { decl.SetRoot(base.Root); base.BaseAdd(name, decl); } }