removeAttributeNode Method (Compact 2013)

3/26/2014

Removes the specified attribute from this element.

Syntax

var objXMLDOMAttribute = oXMLDOMElement.removeAttributeNode(DOMAttribute);
HRESULT removeAttributeNode(
  IXMLDOMAttribute* DOMAttribute,
  IXMLDOMAttribute** attributeNode
);

Parameters

Script

  • DOMAttribute
    Object that supplies the IXMLDOMAttribute object to be removed from this element.

C/C++

  • DOMAttribute
    [in] IXMLDOMAttribute object that is to be removed from this element.
  • attributeNode
    [out, retval] Removed element.

Return Value

Script

Object. Returns the removed element.

C/C++

  • S_OK
    Value returned if successful.
  • E_FAIL
    Value returned if an error occurs.

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.

Requirements

Header

msxml2.h,
msxml2.idl

Library

uuid.lib

See Also

Reference

XML DOM Methods