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 "";
	}
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 "";
	}
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 "" ; }
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.
Gets the value of the attribute with the specified local name and namespace URI .