NamedNodeMapSetNamedItem Method
Adds a node using its nodeName attribute. If a node with that name is already present in this map, it is replaced by the new one. Replacing a node by itself has no effect.

Namespace: Aspose.Html.Collections
Assembly: Aspose.HTML (in Aspose.HTML.dll) Version: 21.2
Syntax
public Attr SetNamedItem(
	Attr attr
)

Parameters

attr
Type: Aspose.Html.DomAttr
The attribute.

Return Value

Type: Attr
Returns node.
Exceptions
ExceptionCondition
DOMException
See Also