Well, your error code as written does not show up in a search of Microsoft's web site.
I would begin by double checking that your hardware exceedes the minium requirements for XP, and that all devices and installed programs are supported in XP.
The compatability page is at;
http://www.microsoft.com/windowsxp/compatibility/default.asp
Remove any spaces from the pasted link.
Your next options, are to call or e-mail MS tech support.
Or, list your system specifications here in detail.
Finally, MANY users have had problems installing XP as an upgrade.
I recommend that you format your hard drive, and install XP onto a clean drive.
(back up your files if needed / possible)
You do not need to have W98 installed before installing XP, you just need to have the W98 CD on hand to prove you qualify for the upgrade.
Chas