Syntax
DOMNameNodeMap.setNamedItem(arg)
Arguments |
Description |
arg |
A DOMNode object instance to add to the calling node map. |
|
Returns
If the new DOMNode object replaces an existing node the replaced DOMNode object is returned, otherwise NULL is returned.
Description
The setNamedItem() method adds a node to the node map. The arg parameter is a DOMNode object to be stored in the named node map. The node will later be accessible using the value of the node's nodeName property passed to the getNamedItem method.