WinXP is not compatible with all types and makes of hardware, if fact it's reported to be the most restrictive yet. Win9x all tried to be real acceptant. Me was worse and XP much worse by fart. Yet, you need to do a virus scan before a any software install, especially an operating System.
Here's a thing you can try, refresh the drivers. Put your computer into SafeMode; Go into Device Manager; Click the plus sign beside CDROM; Highlight each entry there and click the Add/Remove button; When you're done no CDROM entry will be present; Restart you computer via the Start button; Windows will redetect and refresh the drivers in the process. Also before upgrading the OS run System File Checker (SFC). You may need your Win98 Upgrade install CD to finish SFC.