src/XML/Element.php
public function removeAttribute( $name, $nsPrefix = NULL )
	{
		$data	= $nsPrefix ? $this->attributes( $nsPrefix, TRUE ) : $this->attributes();
		foreach( $data as $key => $attributeNode )
		{
			if( $key == $name )
			{
				unset( $data[$key] );
				return TRUE;
			}
		}
		return FALSE;
	}
public function removeAttribute( $name, $nsPrefix = NULL )
	{
		$data	= $nsPrefix ? $this->attributes( $nsPrefix, TRUE ) : $this->attributes();
		foreach( $data as $key => $attributeNode )
		{
			if( $key == $name )
			{
				unset( $data[$key] );
				return TRUE;
			}
		}
		return FALSE;
	}
public function removeAttribute ( $ name , $ nsPrefix = NULL ) { $ data = $ nsPrefix ? $ this -> attributes ( $ nsPrefix , TRUE ) : $ this -> attributes ( ) ; foreach ( $ data as $ key => $ attributeNode ) { if ( $ key == $ name ) { unset ( $ data [ $ key ] ) ; return TRUE ; } } return FALSE ; }
Removes an attribute by it's name.
@access		public
@param		string		$name		Name of attribute
@param		string		$nsPrefix	Namespace prefix of attribute
@return		boolean
Removes an attribute by it s name .