Click to return to the XML (Extensible Markup Language) home page    
XMLDOMNamedNodeMap reset ...     XMLDOMNamedNodeMap Object    
Web Workshop  |  XML (Extensible Markup Language)

setNamedItem Method


Adds the supplied node to the collection.

Syntax

objXMLDOMNode = oXMLDOMNamedNodeMap.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 XMLDOMNode object, the supplied object replaces the existing attribute. The attribute name appears in its XMLDOMNode 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

[ Object Name ]
PlatformVersion
Win16:
Win32:
Mac:
Unix:
WinCE:
XMLDOMNamedNodeMap


Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.