I've never set up a dual boot, so can't really be much help on this.
However, I do know that you should install XP first, then Ubuntu,
otherwise the Windows boot loader will overwrite Grub and you won't get
the option to run Ubuntu at boot up.
There are a lot of how-to guides out there on the net.