Method SetAttributeNode
- Namespace
- SharpVectors.Dom
- Assembly
- SharpVectors.Core.dll
SetAttributeNode(string, string)
Adds the specified XmlAttribute.
XmlAttribute SetAttributeNode(string localName, string namespaceURI)
Parameters
localNamestringThe local name of the attribute.
namespaceURIstringThe namespace URI of the attribute.
Returns
- XmlAttribute
The XmlAttribute to add.
SetAttributeNode(XmlAttribute)
Adds the specified XmlAttribute.
XmlAttribute SetAttributeNode(XmlAttribute newAttr)
Parameters
newAttrXmlAttributeThe XmlAttribute node to add to the attribute collection for this element.
Returns
- XmlAttribute
If the attribute replaces an existing attribute with the same name, the old XmlAttribute is returned; otherwise, null is returned.