If you want to format and reinstall XP, just boot to the xp cd and follow
the on screen instructions.
If you just want to format, boot to a win98 floppy boot disk, run fdisk,
delete all partitions, create new partition, reboot to floppy boot disk,
type: format c: