Element.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)
ParameterTypeDescription
newAttrAttrThe new attr.

Return Value

Returns attribute

See Also