I'd just download / get a bootable utility CD such as SYSRESCD system rescue cd
(on sourceforge, exact spelling may differ), or a LIVE CD version of something like
ubuntu, gentoo, debian, whatever, as long as it has disk management tools included.
Boot from that CD, use the disk management tools like qtparted, gparted, etc. to delete
the UBUNTU partition and also extend the XP partition to the full size of the disc
(assuming that's desirable for you), and make the XP partition ACTIVE / bootable,
and install a new boot-loader.
It should work just fine after that assuming XP itself is installed correctly and
functionally in the first place.
You'll not be able to do that kind of thing with Microsoft tools / DOS / etc., though
Partition Magic or something might be another option that might do.
here's the one I usually use:
http://www.sysresccd.org/Main_Page
..for some reason I think there was an older version that worked slightly better
than one of the newer ones for me, but I forget why, so try the latest one and
maybe the 1-2 year old one too if you notice any feature discrepancies.