Share via


removeAttribute Method

Removes or replaces the named attribute.

oXMLDOMElement.removeAttribute(name);

HRESULT removeAttribute(
  BSTR name
);

General 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 specified property of IXMLDOMNode.

This method applies to the following objects and interfaces:

IXMLDOMElement and IXMLDOMNode.

See Also

specified Property

 Last updated on Saturday, April 10, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.