Usually this would happen if some driver / program that Windows is trying to load at the Windows XP screen is not working. Try to restart in safe mode (pressF8)
If this happens, it means that there is some sort of problem with your Windows XP installation: something is preventing it from starting up or it has become corrupt.