Sets the value of the named attribute.
oXMLDOMElement.setAttribute(name, value)
HRESULT setAttribute( BSTR name, VARIANT value);
If an attribute with the supplied name already exists, this method changes its value to the supplied value parameter. The supplied string is not parsed, so any markup is treated as literal text (such as syntax to be recognized as an entity reference) and needs to be appropriately escaped by the implementation when it is written out.
To assign an attribute value that contains entity references, the user must create an XMLDOMAttribute object plus any XMLDOMText and XMLDOMEntityReference objects, build the appropriate subtree, and call the setAttributeNode method.
See the example given for the getAttribute method.