Method SetNamedItem
- Namespace
- SharpVectors.Dom
- Assembly
- SharpVectors.Core.dll
SetNamedItem(XmlNode)
XmlNode SetNamedItem(XmlNode node)
Parameters
node
XmlNodeAn 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.