original_string: public function GetAttribute( $localName, $namespaceURI )
  	{
  		if ( $this->domNode->nodeType != XML_ELEMENT_NODE )
  		{
  			return "";
  		}
  
  		foreach ( $this->domNode->attributes as /** @var \DOMAttr $attribute */ $attribute )
  		{
  			if ( $attribute->namespaceURI != $namespaceURI || $attribute->localName != $localName )
  			{
  				continue;
  			}
  
  			return (string)$attribute->nodeValue;
  		}
  
  		return "";
  	}
code: public function GetAttribute( $localName, $namespaceURI )
  	{
  		if ( $this->domNode->nodeType != XML_ELEMENT_NODE )
  		{
  			return "";
  		}
  
  		foreach ( $this->domNode->attributes as /** @var \DOMAttr $attribute */ $attribute )
  		{
  			if ( $attribute->namespaceURI != $namespaceURI || $attribute->localName != $localName )
  			{
  				continue;
  			}
  
  			return (string)$attribute->nodeValue;
  		}
  
  		return "";
  	}
code_tokens: public function GetAttribute ( $ localName , $ namespaceURI ) { if ( $ this -> domNode -> nodeType != XML_ELEMENT_NODE ) { return "" ; } foreach ( $ this -> domNode -> attributes as /** @var \DOMAttr $attribute */ $ attribute ) { if ( $ attribute -> namespaceURI != $ namespaceURI || $ attribute -> localName != $ localName ) { continue ; } return ( string ) $ attribute -> nodeValue ; } return "" ; }
docstring: Gets the value of the attribute with the specified local name and namespace URI.
  
  @param string $localName : The local name of the attribute.
  @param string $namespaceURI : The namespace URI of the attribute.
  
  @return string A string that contains the value of the specified attribute; Empty
  if a matching attribute is not found, or if the XPathNavigator
  is not positioned on an element node.
docstring_tokens: Gets the value of the attribute with the specified local name and namespace URI .