Can you install Windows XP on Windows Vista and switch between them?

Yes. There is a process called Dual Booting, but it requires two hard drives. Just search for "how to dual boot windows vista and windows XP?".