removeAttributeNode Method
A version of this page is also available for
4/8/2010
Removes the specified attribute from this element.
Script Syntax
var objXMLDOMAttribute = oXMLDOMElement.removeAttributeNode(DOMAttribute);
Remarks
Script Parameters
- DOMAttribute
Object that supplies the IXMLDOMAttribute object to be removed from this element.
Return Value
Object. Returns the removed element.
C/C++ Syntax
HRESULT removeAttributeNode(
IXMLDOMAttribute* DOMAttribute,
IXMLDOMAttribute** attributeNode
);
Remarks
C/C++ Parameters
- DOMAttribute
[in] IXMLDOMAttribute object that is to be removed from this element.
- attributeNode
[out, retval] Removed element.
C/C++ Return Values
- S_OK
Value returned if successful.
- E_FAIL
Value returned if an error occurs.
Requirements
Header | msxml2.h, msxml2.idl |
Library | uuid.lib |
Windows Embedded CE | Windows CE .NET 4.0 and later |
General Remarks
If the attribute has a default value, this call also creates a new attribute with the default value, associates the new attribute with this element, and resets the attribute's specified Property.
This method applies to the following objects and interfaces:
IXMLDOMElement and IXMLDOMAttribute.