Table of Contents

Method SetNamedItem

Namespace
SharpVectors.Dom
Assembly
SharpVectors.Core.dll

SetNamedItem(XmlNode)

Adds an XmlNode using its Name property

XmlNode SetNamedItem(XmlNode node)

Parameters

node XmlNode

An XmlNode to store in the INamedNodeMap. If a node with that name is already present in the map, it is replaced by the new one.

Returns

XmlNode

If the node replaces an existing node with the same name, the old node is returned; otherwise, null is returned.

Exceptions

ArgumentException

The node was created from a different XmlDocument than the one that created the INamedNodeMap; or the INamedNodeMap is read-only.