One way is to have to physical hard drives where one contains WinXP and the other contains Win98. Or create two separate partitions (one for WinXP and the other for Win98). When you boot your computer, it should detect two different operating system and allow you to select which one. If it does not then you'll have to configure the boot.ini file.
there are lots of information on google how bout to dual boot.