public function setAttribute( $name, $value, $nsPrefix = NULL, $nsURI = NULL )
	{
		if( $value !== NULL )
		{
			if( !$this->hasAttribute( $name, $nsPrefix ) )
				return $this->addAttribute( $name, $value, $nsPrefix, $nsURI );
			$this->removeAttribute( $name, $nsPrefix );
			$this->addAttribute( $name, $value, $nsPrefix, $nsURI );
		}
		else if( $this->hasAttribute( $name, $nsPrefix ) )
		{
			$this->removeAttribute( $name, $nsPrefix );
		}
	}