removeNamedItem Method (Compact 2013)

3/26/2014

Removes an attribute from the collection.

Syntax

var objXMLDOMNode = oXMLDOMNamedNodeMap.removeNamedItem(name);
HRESULT removeNamedItem(
  BSTR name,
  IXMLDOMNode** namedItem
);

Parameters

Script

  • name
    String specifying the name of the attribute to remove from the collection.

C/C++

  • name
    [in] Name of the attribute to remove from the collection.
  • namedItem
    [out, retval] Node removed from the collection. Returns Null if the named node is not an attribute.

Return Value

Script

Object. Returns the node removed from the collection. Returns Null if the named node is not an attribute.

C/C++

  • S_OK
    Value returned if successful.
  • S_FALSE
    Value when returning Null.
  • E_FAIL
    Value returned if an error occurs.

Remarks

This method applies to the following interface:

IXMLDOMNamedNodeMap.

Requirements

Header

msxml2.h,
msxml2.idl

Library

uuid.lib

See Also

Reference

XML DOM Methods