Boot with your XP cd.. Go to install the OS, not repair..
Select your partition. but this time Delete the partition. Then create the partition.. It will now ask you to format as fat32 or NTFS.. Choose your liking,, Then the install should go..
If it still stalls in the install then you have a few things wrong.. Overheating CPU, Overheating Harddrive, Bad CD rom or bad disk.