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.