Element.SetAttributeNodeNS

Element.SetAttributeNodeNS method

Adds a new attribute. If an attribute with that local name and that package URI is already present in the element, it is replaced by the new one.

public Attr SetAttributeNodeNS(Attr newAttr)
ParameterTypeDescription
newAttrAttrThe new attr.

Return Value

Returns attribute

See Also