Click to return to the XML (Extensible Markup Language) home page    
IXMLDOMElement::removeAtt...     IXMLDOMElement::setAttrib...     IXMLDOMElement Interface    
Web Workshop  |  XML (Extensible Markup Language)

IXMLDOMElement::removeAttributeNode Method


Removes the specified attribute from this element.

Visual Basic Syntax

Set objXMLDOMAttribute = oXMLDOMElement.removeAttributeNode(DOMAttribute)

C/C++ Syntax

HRESULT removeAttributeNode(
    IXMLDOMAttribute *DOMAttribute,
    IXMLDOMAttribute **attributeNode);

Parameters

DOMAttribute
[in] DOMAttribute object that is to be removed from this element.
attributeNode
[out] Removed element.

C/C++ Return Values

S_OK
Value returned if successful.
E_FAIL
Value returned if an error occurs.

Remarks

Note that if the attribute has a default value, this call also creates a new attribute object with the default value, associates the new attribute with this element, and resets the attribute's specified property.



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.