Magazine |
| | Community |
| | Workshop |
| | Tools & Samples |
| | Training |
| | Site Info |
|
|
||||||||
|
Adds the supplied node to the collection.
Syntax
objDOMNode = oDOMNamedNodeMap.setNamedItem(newItem)
Parameters
- newItem
- Object containing the attribute to be added to the collection.
Returns
Object. Returns the attribute successfully added to the collection.
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.
Applies To
Does this content meet your programming needs? Write us!
© 1998 Microsoft Corporation. All rights reserved. Terms of use.