Microsoft XML SDK 2.6 - XML Reference

setAttributeNode Method

Adds or changes the supplied attribute node on this element.

objXMLDOMAttribute = oXMLDOMElement.setAttributeNode(XMLDOMAttribute)

Parameters

XMLDOMAttribute
Object that contains the attribute node to be associated with this element.

Return Value

Object. Returns Null unless the new attribute replaces an existing attribute with the same name, in which case this method returns the previous, replaced attribute node.

Applies To

Applies To: XMLDOMElement Object