removeAttribute Method

Windows Mobile 6.5
A version of this page is also available for
4/8/2010

Removes or replaces the named attribute.

oXMLDOMElement.removeAttribute(name);

name

String specifying the name of the attribute to be removed or replaced.

HRESULT removeAttribute(
  BSTR name
);

name

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

S_OK

Value returned if successful.

S_FALSE

Value returned when no attribute with the given name is found.

E_FAIL

Value returned if an error occurs.

Headermsxml2.h, msxml2.idl
Libraryuuid.lib
Windows Embedded CEWindows CE .NET 4.0 and later

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.

Other Resources


Community Additions

Show: