Addition to above post. If after reformatting with HD mfg's utility, XP still refuses to install post back.

Bad ram or a bad MB will cause failure of XP to install. MB failures are usually related to bad capacitors ( a big problem on some older4 MB's )

What make and model of MB do you have?