Method RemoveAttributeNode
- Namespace
- SharpVectors.Dom
- Assembly
- SharpVectors.Core.dll
RemoveAttributeNode(XmlAttribute)
Removes the specified XmlAttribute.
XmlAttribute RemoveAttributeNode(XmlAttribute oldAttr)
Parameters
oldAttr
XmlAttributeThe XmlAttribute node to remove. If the removed attribute has a default value, it is immediately replaced.
Returns
- XmlAttribute
The removed XmlAttribute or null if
oldAttr
is not an attribute node of the XmlElement .
RemoveAttributeNode(string, string)
Removes the XmlAttribute specified by the local name and namespace URI. (If the removed attribute has a default value, it is immediately replaced).
XmlAttribute RemoveAttributeNode(string localName, string namespaceURI)
Parameters
localName
stringThe local name of the attribute.
namespaceURI
stringThe namespace URI of the attribute.
Returns
- XmlAttribute
The removed XmlAttribute or null if the XmlElement does not have a matching attribute node.