Click to return to the XML (Extensible Markup Language) home page    
XMLDOMElement setAttribut...     XMLDOMElement tagName Pro...     XMLDOMElement Object    
Web Workshop  |  XML (Extensible Markup Language)

setAttributeNode Method


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

[ Object Name ]
PlatformVersion
Win16:
Win32:
Mac:
Unix:
WinCE:
XMLDOMElement


Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.