Former Open runner-up Costantino Rocca has criticised Rory McIlroy's attitude and believes the Northern Irishman can learn from Tiger Woods.