Install both operating systems on the same machine.
Install both operating systems on the same machine.
It might function, but since Windows XP dates back to 2001, it could encounter problems with modern hardware. Driver compatibility is likely a concern.
You may place both on legacy BIOS, even together on the same drive if needed (assign each its own main partition). When installing XP followed by 8.1, the latter will recognize XP and set up a bootloader allowing you to switch between the operating systems each time you power on the computer.