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

IXMLDOMElement::removeAttribute Method


Removes or replaces the named attribute.

Visual Basic Syntax

oXMLDOMElement.removeAttribute(name)

C/C++ Syntax

HRESULT removeAttribute(
    BSTR name);

Parameters

name
[in] Name of the attribute to be removed or replaced.

C/C++ Return Values

S_OK
Value returned if successful.
S_FALSE
Value when returning null. 
E_FAIL
Value returned if an error occurs.

Remarks

If the specified attribute has a default value, this is equivalent to a replace operation: the current value is removed and a new attribute is created with the default value. This operation also resets the IXMLDOMNode interface'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.