public virtual void SetAttributeValue(string attributeName, string xmlValue, bool isIdAttribute) { string oldValue = GetAttributeValue(attributeName); if (isIdAttribute) { _domElement.SetIdAttribute(attributeName, xmlValue); } else { _domElement.SetAttribute(attributeName, xmlValue); } IAttribute attribute = _elementType.GetAttribute(attributeName); if (attribute != null) { ((AttributeImpl)attribute).UpdateIncomingReferences(this, xmlValue, oldValue); } }