public void SetActive() { string existingValue = DivElement.Attribute("class").Value; DivElement.Attribute("class").SetValue(existingValue + " " + IdHelper.ActiveClass); }