MoveToAttribute()

XPathNavigator::MoveToAttribute(String, String) method

Moves the XPathNavigator to the attribute with the matching local name and namespace URI.

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

Arguments

ParameterTypeDescription
localNameStringThe local name of the attribute.
namespaceURIStringThe namespace URI of the attribute; nullptr for an empty namespace.

Return Value

true if the XPathNavigator is successful moving to the attribute; otherwise, false. If false, the position of the XPathNavigator is unchanged.

See Also