When ur booting up your computer, make sure u have the windows xp cd inside the cd tray, and while booting up tap the f10 key..
If that doesnt work, while booting up, tap the f2 key and go into your BIOS and select first boot device and make it bootable cd/dvd. should work.. and if that doest work, then u need a new cd/dvd rom drive