There is a tax deduction for contributions to an RRSP, and withdrawals of contributions and investment income are all taxable.
If an account-holder withdraws funds from a TFSA, his or her contribution room is increased by that amount in the tax year after the withdrawal.