For sorry you can't format the C: drive as it's primary one and contains boot files for both XP and Vista and if you did, you won't be able to boot Vista's partition. If you want it to work, you have to install both XP and Vista, you must install XP first on D: or E: partition, then Vista on C: as primary one.
Good luck 