SetAttributeNode

Element.SetAttributeNode method

Adds a new attribute node. If an attribute with that name (nodeName) is already present in the element, it is replaced by the new one.

public Attr SetAttributeNode(Attr newAttr)
Parameter Type Description
newAttr Attr The new attr.

Return Value

Returns attribute

See Also