DOM/DOMXPathNavigator.php
public function MoveToAttribute( $localName, $namespaceURI )
	{
		if ( ! $this->MoveToFirstAttribute() )
		{
			return false;
		}

		do
		{
			if ( $this->getLocalName() == $localName && ( ( is_null( $namespaceURI ) && empty( $this->getNamespaceURI() ) ) || $this->getNamespaceURI() == $namespaceURI ) )
			{
				return true;
			}
		} while ( $this->MoveToNextAttribute() );

		// If any attribute was found but not the desired attribute return to the parent
		$this->MoveToParent();

		return false;
	}
public function MoveToAttribute( $localName, $namespaceURI )
	{
		if ( ! $this->MoveToFirstAttribute() )
		{
			return false;
		}

		do
		{
			if ( $this->getLocalName() == $localName && ( ( is_null( $namespaceURI ) && empty( $this->getNamespaceURI() ) ) || $this->getNamespaceURI() == $namespaceURI ) )
			{
				return true;
			}
		} while ( $this->MoveToNextAttribute() );

		// If any attribute was found but not the desired attribute return to the parent
		$this->MoveToParent();

		return false;
	}
public function MoveToAttribute ( $ localName , $ namespaceURI ) { if ( ! $ this -> MoveToFirstAttribute ( ) ) { return false ; } do { if ( $ this -> getLocalName ( ) == $ localName && ( ( is_null ( $ namespaceURI ) && empty ( $ this -> getNamespaceURI ( ) ) ) || $ this -> getNamespaceURI ( ) == $ namespaceURI ) ) { return true ; } } while ( $ this -> MoveToNextAttribute ( ) ) ; // If any attribute was found but not the desired attribute return to the parent
 $ this -> MoveToParent ( ) ; return false ; }
Moves the XPathNavigator to the attribute with the matching local name and namespace URI.

@param string $localName : The local name of the attribute.
@param string $namespaceURI : The namespace URI of the attribute; null for an empty namespace.

@return bool Returns true if the XPathNavigator is successful moving to the attribute; otherwise, false.
If false, the position of the XPathNavigator is unchanged.
Moves the XPathNavigator to the attribute with the matching local name and namespace URI .