Boot to the Windows XP intall cd and you will need to delete existing partitions and then repartition and install.
HOWEVER, How much system ram is installed? What are the system specs. If this machine was designed for 98 then I doubt it will run XP.