setNamedItem Method (Windows CE 5.0)
Adds the supplied node to the collection.
Object containing the attribute to be added to the collection.
Script Return Value
Object. Returns the attribute successfully added to the collection.
HRESULT setNamedItem(IXMLDOMNode* newItem,IXMLDOMNode** nameItem);
[in] Attribute to be added to the collection.
[out, retval] Attribute successfully added to the collection. If Null, no object is created.
C/C++ Return Values
Value returned if successful.
Value returned if newItem is Null.
Value returned if an error occurs.
OS Versions: Windows CE .NET 4.0 and later.
Header: Msxml2.h, Msxml2.idl.
Link Library: Uuid.lib.
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:
Send Feedback on this topic to the authors