GetAttribute()

XPathNavigator::GetAttribute(String, String) method

Returns the value of the attribute with the specified local name and namespace URI.

virtual String System::Xml::XPath::XPathNavigator::GetAttribute(String localName, String namespaceURI)

Arguments

ParameterTypeDescription
localNameStringThe local name of the attribute. localName is case-sensitive.
namespaceURIStringThe namespace URI of the attribute.

Return Value

A String that contains the value of the specified attribute; String::Empty if a matching attribute is not found, or if the XPathNavigator is not positioned on an element node.

See Also