Computer won’t boot from CD-ROM with Windows XP CD

My aunt has a virus problem on her computer; the virus had corrupted most of the system file of the operating system. Her computer was running windows 98, she wants to reformat the hard drive and replace it with Windows XP.
But the problem is, her computer does not support booting from CD-ROM.
How am I supposed to install Windows XP on her computer?
