Windows 98SE boot disk contains the necessary drivers to enable just about any ide cd-rom drive. You gave no information about what cd-rom drive you have nor how it connects to the pc.
In order to boot from the Windows XP installation disk, you must have the boot order set in pc bios setup to cd drive first. (if your pc bios allows this).
If not then provide some drive information and some connection/configuration info.