setNamedItem Method
Adds the supplied node to the collection.
var objXMLDOMNode = oIXMLDOMNamedNodeMap.setNamedItem(newItem);
HRESULT setNamedItem(
IXMLDOMNode* newItem,
IXMLDOMNode** nameItem
);
General Remarks
If an attribute already exists with the name in IXMLDOMNode, the supplied replaces the existing attribute. The attribute name appears in its IXMLDOMNode property.
If the newItem node type is not NODE_ATTRIBUTE, setNamedItem returns an error. For example, it is not possible to modify entities or notations, which are read-only.
This method applies to the following objects and interfaces:
IXMLDOMNode, and IXMLDOMNamedNodeMap.
Last updated on Saturday, April 10, 2004
© 1992-2003 Microsoft Corporation. All rights reserved.