Magazine |
| | Community |
| | Workshop |
| | Tools & Samples |
| | Training |
| | Site Info |
|
|
||||||||
|
Adds the supplied node to the collection.
Syntax
HRESULT setNamedItem( IDOMNode * newItem, IDOMNode ** nameItem);
Parameters
- newItem
- [in] Attribute to be added to the collection.
- nameItem
- [out] Attribute successfully added to the collection.
Return Value
Returns S_OK if successful, or an error code otherwise.
Remarks
If an attribute already exists with the name in the supplied IDOMNode object, the supplied object replaces the existing attribute. The attribute name appears in its IDOMNode property.
If the newItem node type is not NODE_ATTRIBUTE, setNamedItem returns an error. For example, it is not possible to modify entities and notations, which are read-only.
See Also
Does this content meet your programming needs? Write us!
© 1998 Microsoft Corporation. All rights reserved. Terms of use.