Try a Repair installation of Windows.
This leaves all your programs and data intact while reinstalling Windows.
1. Boot the computer from your XP CD (if this won't boot, you may need to change the order of boot devices in BIOS setup).
2 Eventually you will see the "Welcome To Setup" screen. Press the Enter key to start Windows Setup.
3. Be careful NOT to choose R, which is "To repair a Windows XP installation using the Recovery Console".
4. Accept the License Agreement.
5. Windows setup will search for existing Windows installations.
6. Select the XP installation you want to repair (there is usually only one) and now press R to start the repair.
More complete instructions on how to do this, complete with pictures, are here:
http://www.michaelstevenstech.com/XPrepairinstall.htm