protected function getAttributes(DOMElement $element)
	{
		$attributes = array();
		foreach ($element->attributes as $attribute)
		{
			$key = $attribute->namespaceURI . '#' . $attribute->nodeName;
			$attributes[$key] = $attribute->nodeValue;
		}

		return $attributes;
	}
protected function getAttributes(DOMElement $element)
	{
		$attributes = array();
		foreach ($element->attributes as $attribute)
		{
			$key = $attribute->namespaceURI . '#' . $attribute->nodeName;
			$attributes[$key] = $attribute->nodeValue;
		}

		return $attributes;
	}
protected function getAttributes ( DOMElement $ element ) { $ attributes = array ( ) ; foreach ( $ element -> attributes as $ attribute ) { $ key = $ attribute -> namespaceURI . '#' . $ attribute -> nodeName ; $ attributes [ $ key ] = $ attribute -> nodeValue ; } return $ attributes ; }
Retrieve a list of attributes from given element

@return array NamespaceURI#nodeName as keys, attribute values as values
Retrieve a list of attributes from given element