Use XmlElement.SetAttribute (method 'attribute to modify', 'value to set to to')
, XMLNode XMLElement, , , XmlNode XmlElement, ,
XmlElement el = (XmlElement)curNode;
el.SetAttribute("Class", "Value");
, :
XmlAttribute attrib =
curNode.OwnerDocument.CreateAttribute("Class");
attrib.Value = "Value";
curNode.Attributes.Append(attrib);
,