You can use a flash drive to set up a boot up program that will act as a boot disc for XP. You cannot set up a pendrive or flash drive to contain the xp operating sytem that will boot on demand because of all the built in boot configuration and driver/ hardware checks in XP.
There are executable programs that can be installed on a flashdrive. These are normally refered to as U3 programs. Google for them!