Microsoft XML 2.5 SDK


 

setAttributeNode Method

[This is preliminary documentation and subject to change.]

Adds or changes the supplied attribute node on this element.

Syntax

objXMLDOMAttribute = oXMLDOMElement.setAttributeNode(XMLDOMAttribute)

Parameters

XMLDOMAttribute

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

Returns

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

XMLDOMElement