I just did this last week for one of our computers here at work.
If you have the XP cd, you can re-install it fine. The problem is finding drivers. Dell doesn't provide XP drivers for the video, sound, and chipset.
However, I found that you can use the XP drivers for the Latitude D531 on it.