Method GetAttribute
- Namespace
- SharpVectors.Dom
- Assembly
- SharpVectors.Core.dll
GetAttribute(string)
Returns the value for the attribute with the specified name.
string GetAttribute(string name)
Parameters
name
stringThe name of the attribute to retrieve. This is a qualified name. It is matched against the Name property of the matching node.
Returns
- string
The value of the specified attribute. An empty string is returned if a matching attribute is not found or if the attribute does not have a specified or default value.
GetAttribute(string, string)
Returns the value for the attribute with the specified local name and namespace URI.
string GetAttribute(string localName, string namespaceURI)
Parameters
localName
stringThe local name of the attribute to retrieve.
namespaceURI
stringThe namespace URI of the attribute to retrieve.
Returns
- string
The value of the specified attribute. An empty string is returned if a matching attribute is not found or if the attribute does not have a specified or default value.