SetNamedItem()
XmlNamedNodeMap::SetNamedItem(SharedPtr<XmlNode>) method
Adds an XmlNode using its XmlNode::get_Name value.
virtual SharedPtr<XmlNode> System::Xml::XmlNamedNodeMap::SetNamedItem(SharedPtr<XmlNode> node)
Arguments
Parameter | Type | Description |
---|---|---|
node | SharedPtr<XmlNode> | An XmlNode to store in the XmlNamedNodeMap. If a node with that name is already present in the map, it is replaced by the new one. |
Return Value
If the node replaces an existing node with the same name, the old node is returned; otherwise, nullptr is returned.
See Also
- Typedef SharedPtr
- Class XmlNode
- Class XmlNamedNodeMap
- Namespace System::Xml
- Library Aspose.Slides