If you already have a Legal, licenced copy of windows 98, and you still have your CD-Key, all you need is the upgrade, you can install XP right over the top of it, or erase 98 and install fresh.
If you ever have to re-install XP, all you will need is to still have the 98 disk, it will ask you for it during the install. So dont get rid of it.